C# Class Signum.Windows.Monitors

Mostra file Open project: signumsoftware/framework Class Usage Examples

Public Properties

Property Type Description
AdjustToMonitorProperty System.Windows.DependencyProperty
CenterOnSizedToContentProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetAdjustToMonitor ( DependencyObject obj ) : bool
GetCenterOnSizedToContent ( DependencyObject obj ) : bool
GetMonitorFromPoint ( Point point, NotFoundOptions notFoundOptions ) : MonitorInfo
GetMonitorFromRect ( Rect rect, NotFoundOptions notFoundOptions ) : MonitorInfo
GetMonitorFromWindow ( Window windows, NotFoundOptions notFoundOptions ) : MonitorInfo
GetMonitors ( ) : List
SetAdjustToMonitor ( DependencyObject obj, bool value ) : void
SetCenterOnSizedToContent ( DependencyObject obj, bool value ) : void

Private Methods

Method Description
AdjustToMonitorChanged ( DependencyObject dep, bool newValue ) : void
CenterOnSizedToContentChanged ( DependencyObject dep, bool newValue ) : void
EnumDisplayMonitors ( IntPtr hdc, IntPtr lprcClip, MonitorEnumDelegate lpfnEnum, IntPtr dwData ) : bool
GetJustChangedMonitor ( DependencyObject obj ) : DateTime?
GetMonitorInfo ( IntPtr hMonitor ) : MonitorInfo
GetMonitorInfo ( IntPtr hmon, MONITORINFO &mi ) : bool
MonitorFromPoint ( POINT point, NotFoundOptions notFoundOptions ) : IntPtr
MonitorFromRect ( RECT point, NotFoundOptions notFoundOptions ) : IntPtr
MonitorFromWindow ( IntPtr hWind, NotFoundOptions notFoundOptions ) : IntPtr
SetJustChangedMonitor ( DependencyObject obj, System.DateTime value ) : void
Window_LocationChanged ( object sender, EventArgs e ) : void
Window_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Method Details

GetAdjustToMonitor() public static method

public static GetAdjustToMonitor ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetCenterOnSizedToContent() public static method

public static GetCenterOnSizedToContent ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetMonitorFromPoint() public static method

public static GetMonitorFromPoint ( Point point, NotFoundOptions notFoundOptions ) : MonitorInfo
point Point
notFoundOptions NotFoundOptions
return MonitorInfo

GetMonitorFromRect() public static method

public static GetMonitorFromRect ( Rect rect, NotFoundOptions notFoundOptions ) : MonitorInfo
rect System.Windows.Rect
notFoundOptions NotFoundOptions
return MonitorInfo

GetMonitorFromWindow() public static method

public static GetMonitorFromWindow ( Window windows, NotFoundOptions notFoundOptions ) : MonitorInfo
windows System.Windows.Window
notFoundOptions NotFoundOptions
return MonitorInfo

GetMonitors() public static method

public static GetMonitors ( ) : List
return List

SetAdjustToMonitor() public static method

public static SetAdjustToMonitor ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

SetCenterOnSizedToContent() public static method

public static SetCenterOnSizedToContent ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

Property Details

AdjustToMonitorProperty public_oe static_oe property

public static DependencyProperty,System.Windows AdjustToMonitorProperty
return System.Windows.DependencyProperty

CenterOnSizedToContentProperty public_oe static_oe property

public static DependencyProperty,System.Windows CenterOnSizedToContentProperty
return System.Windows.DependencyProperty