![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C#
-
csandme_
这个作者很懒,什么都没留下…
展开
-
1.获取屏幕尺寸
(1).获取屏幕尺寸(不含任务栏) int with = GetSystemMetrics(SM_CXFULLSCREEN); int heigh = GetSystemMetrics(SM_CYFULLSCREEN); (2).获取屏幕尺寸(含任务栏) int cx = GetSystemMetrics(SM_CXSCREEN); int cy = GetSystemMetr转载 2012-08-28 22:24:37 · 271 阅读 · 0 评论 -
静态类:System.Environment
说明:Environment类提供有关当前环境和平台的信息以及操作它们的方法。无法继承此类。使用 Environment类可检索信息,如命令行参数、退出代码、环境变量设置、调用堆栈的内容、自上次系统启动以来的时间,以及公共语言运行库的版本等。 属性: 摘要:获取该进程的命令行。 public static string CommandLine { get; } 摘要:获取和设置当前目录(即该进...转载 2019-08-31 06:33:40 · 432 阅读 · 0 评论 -
XmlReader与 XMLWriter(抽象类)
一、概述 XMLReader为抽象类,其派生类有:XmlDictionaryReader、XmlNodeReader、XmlTextReader(与IO命名空间中的TextReader对象一起使用)、XmlValidatingReader(添加了DTD和模式验证,提供数据的有效性验证)。 •XmlReader reader =new XmlTextReader(xmlFile); •XmlR...转载 2019-09-14 21:05:04 · 304 阅读 · 0 评论