- 博客(4)
- 收藏
- 关注
原创 ListBox隔行显示Items背景颜色
AlternationCount="2" 属性 <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Style.Triggers>...
2019-08-24 16:37:52 786
原创 C# 判断(Excel)文件是否已经打开
using System.IO;using System.Runtime.InteropServices;[DllImport("kernel32.dll")]public static extern IntPtr _lopen(string lpPathName, int iReadWrite);[DllImport("kernel32.dll")]public static ...
2019-08-22 09:29:28 3117 1
原创 C# 设置Excel单元格格式(身份证文本显示)
1、全表自动列宽 mysheet.Cells.Select(); mysheet.Cells.Columns.AutoFit();2、合并 excelRangeParm.Merge(Missing.Value); 3、粗体设置 excelRangeParm.Font.Bold = true; 4、字体大小设置 exc...
2019-08-22 08:53:21 1724
原创 AllowsTransparency="True" 怎么放大缩小窗体
后台都不用写任何代码!xaml:<Window x:Class="TestNoBorderWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xam...
2019-08-20 14:39:48 1307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人