C# Class PsHandler.Custom.ExtensionMethods

Exibir arquivo Open project: kampiuceris/PsHandler

Public Methods

Method Description
GetHandle ( this window ) : IntPtr
IsValid ( this point ) : bool
ResetColumnWidths ( this gridView ) : void
SetOwner ( this window, IntPtr owner ) : void
SetProperty ( this o, string propertyName, object property, bool setForChildren = false ) : void
SetWindowStylesForHud ( this window ) : void
ToBitmapSource ( this source ) : System.Windows.Media.Imaging.BitmapSource

Converts a System.Drawing.Image into a WPF BitmapSource.

ToBool ( this source ) : bool
ToInt ( this source ) : int

Method Details

GetHandle() public static method

public static GetHandle ( this window ) : IntPtr
window this
return System.IntPtr

IsValid() public static method

public static IsValid ( this point ) : bool
point this
return bool

ResetColumnWidths() public static method

public static ResetColumnWidths ( this gridView ) : void
gridView this
return void

SetOwner() public static method

public static SetOwner ( this window, IntPtr owner ) : void
window this
owner System.IntPtr
return void

SetProperty() public static method

public static SetProperty ( this o, string propertyName, object property, bool setForChildren = false ) : void
o this
propertyName string
property object
setForChildren bool
return void

SetWindowStylesForHud() public static method

public static SetWindowStylesForHud ( this window ) : void
window this
return void

ToBitmapSource() public static method

Converts a System.Drawing.Image into a WPF BitmapSource.
public static ToBitmapSource ( this source ) : System.Windows.Media.Imaging.BitmapSource
source this The source image.
return System.Windows.Media.Imaging.BitmapSource

ToBool() public static method

public static ToBool ( this source ) : bool
source this
return bool

ToInt() public static method

public static ToInt ( this source ) : int
source this
return int