Class SystemInformation
Provides information about the current system environment.
public static class SystemInformation
- Inheritance
-
SystemInformation
Fields
- WinFormsDoubleClickSize
Specifies the default pixel size used to determine whether two consecutive mouse clicks are considered a double-click in Windows Forms applications.
- WinFormsDoubleClickTime
Specifies the default maximum interval, in milliseconds, that distinguishes a double-click from two consecutive single clicks in Windows Forms applications.
Properties
- DoubleClickSize
Size of rectangle within which two successive mouse clicks must fall to generate a double-click. This property returns size in pixels. In order to get size in dips, use DoubleClickSizeForControl(AbstractControl) or DoubleClickSizeDips(float?).
- DoubleClickTime
Gets or sets the maximum number of milliseconds that can elapse between a first click and a second click for the OS to consider the mouse action a double-click.
- DoubleClickTimeInTicks
Gets the maximum interval, in ticks, that is recognized as a double-click by the system.
- MouseWheelScrollLines
Gets the number of lines to scroll when the mouse wheel is rotated.
- WorkingArea
Gets the size, in dips, of the working area of the screen. Do not use this property if there are multiple displays with different DPI settings.
Methods
- DoubleClickSizeDips(float?)
Gets the system double-click size converted to device-independent pixels (DIPs).
- DoubleClickSizeForControl(AbstractControl)
Returns the recommended double-click hit test size for the specified control, adjusted for its current scale factor.
- IsWithinDoubleClickSize(PointD, PointD, AbstractControl)
Determines whether the specified points are within the system-defined double-click area for the given control.
- Log()
Logs the current system settings values to the application log.