点击或拖拽改变大小

SystemEx 类

Sweet 开发框架
系统相关扩展类
继承层次
SystemObject
  Sweet.CommonSystemEx

命名空间:  Sweet.Common
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static class SystemEx

SystemEx 类型公开以下成员。

方法
  名称说明
公共方法静态成员BringToFront
将程序调至前台
公共方法静态成员CloseFile
关闭进程
公共方法静态成员ConsoleWriteLine
公共方法静态成员CpuUsed
CPU使用率(单位:%)
公共方法静态成员Delay
Delays the specified ms.
公共方法静态成员DisabledTaskManager
公共方法静态成员Disk
根据文件名或者磁盘名获取磁盘信息
公共方法静态成员DiskExist
根据文件名或者磁盘名判断磁盘是否存在
公共方法静态成员EnabledTaskManager
公共方法静态成员GetCursorPos
获取鼠标位置
公共方法静态成员GetForegroundWindowBounds
获取程序当前窗口的大小和位置
公共方法静态成员ProcessIsRun
程序已经运行
公共方法静态成员ProcessRamUsed
获取当前进程占用内存大小(单位:MB)
公共方法静态成员RegistryDisableTaskMgr
公共方法静态成员RegistryHooksTimeout
公共方法静态成员RunDosCmd
运行dos命令
公共方法静态成员RunningInstance
公共方法静态成员ScreenCount
显示器个数
公共方法静态成员ShowOnMonitor
多显示器扩展,指定显示器显示
公共方法静态成员ThreadSafeCall(Control, Action)
txtOutput.ThreadSafeCall(() => txtOutput.Text = "Updated");
公共方法静态成员ThreadSafeCallT(Control, FuncT)
公共方法静态成员ToGB
Byte To GB
公共方法静态成员ToKB
Byte To KB
公共方法静态成员ToMB
Byte To MB
公共方法静态成员ToTB
Byte To TB
Top
字段
  名称说明
公共字段静态成员SW_FORCEMINIMIZE
在WindowNT5.0中最小化窗口,即使拥有窗口的线程被挂起也会最小化。在从其他线程最小化窗口时才使用这个参数。  Windows Server 2003, Windows 2000, and Windows XP: Minimizes a window, even when the thread that owns the window is hung. Only use this flag when minimizing windows from a different thread.
公共字段静态成员SW_HIDE
最小化显示 Hides the window and activates another window.
公共字段静态成员SW_MINIMIZE
最小化指定的窗口并且激活在Z序中的下一个顶层窗口。 Minimizes the specified window, and activates the next top-level window in the Z order.
公共字段静态成员SW_NORMAL
正常显示 Activates and displays a window. If the window is minimized or maximized, the system restores it to the original size and position. An application specifies this flag when displaying the window for the first time.
公共字段静态成员SW_RESTORE
激活并显示窗口。如果窗口最小化或最大化,则系统将窗口恢复到原来的尺寸和位置。在恢复最小化窗口时,应用程序应该指定这个标志。  Activates and displays the window. If the window is minimized or maximized, the system restores it to the original size and position. An application specifies this flag when restoring a minimized window. 
公共字段静态成员SW_SHOW
在窗口原来的位置以原来的尺寸激活和显示窗口。  Activates the window, and displays it at the current size and position.
公共字段静态成员SW_SHOWDEFAULT
依据在STARTUPINFO结构中指定的SW_FLAG标志设定显示状态,STARTUPINFO结构是由启动应用程序的程序传递给CreateProcess函数的。   Sets the show state based on the SW_ value that is specified in the STARTUPINFO structure passed to the CreateProcess function by the program that starts the application.
公共字段静态成员SW_SHOWMAXIMIZED
激活窗口并将其最大化  Activates the window, and displays it as a maximized window.
公共字段静态成员SW_SHOWMINIMIZED
激活窗口并将其最小化 Activates the window, and displays it as a minimized window.
公共字段静态成员SW_SHOWMINNOACTIVE
窗口最小化,激活窗口仍然维持激活状态。  Displays the window as a minimized window. This value is similar to SW_SHOWMINIMZED, except that the window is not activated.     
公共字段静态成员SW_SHOWNA
以窗口原来的状态显示窗口。激活窗口仍然维持激活状态。 Displays the window at the current size and position. This value is similar to SW_SHOW, except that the window is not activated.
公共字段静态成员SW_SHOWNOACTIVATE
以窗口最近一次的大小和状态显示窗口。激活窗口仍然维持激活状态。 Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except that the window is not activated. 
Top
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架