摘要:
引入命名空间: using System.Drawing; 以下代码即可实现: static void PrintScreen() { using (Bitmap bitPic = new Bitmap( width: Screen.PrimaryScreen.Bounds.Width, heigh 阅读全文
posted @ 2023-01-12 18:07
[春风十里]
阅读(198)
评论(0)
推荐(0)
摘要:
引入命名空间: using Microsoft.Office.Interop.Excel; using System.Runtime.InteropServices; 创建Sheet: var app = new Microsoft.Office.Interop.Excel.Application( 阅读全文
posted @ 2023-01-12 18:04
[春风十里]
阅读(863)
评论(0)
推荐(0)
摘要:
1.判断目录或文件是否存在(using System.IO;): Directory.Exists(path);//目录是否存在 File.Exists(filePath);/文件是否存在 2.创建或删除-目录或文件: Directory.CreateDirectory(path);//创建目录 D 阅读全文
posted @ 2023-01-12 15:29
[春风十里]
阅读(207)
评论(0)
推荐(0)
摘要:
记录一些常用的操作XML文档的方法,XML示例文档如下: <?xml version="1.0" encoding="utf-8"?> <Animal> <Dog Sound="WangWang" Favor="Bone" /> <Cat Sound="MiaoMiao" Favor="Fish" 阅读全文
posted @ 2023-01-12 14:48
[春风十里]
阅读(62)
评论(0)
推荐(0)

浙公网安备 33010602011771号