C# Class PsHandler.Custom.ExtensionMethods

Afficher le fichier Open project: kampiuceris/PsHandler

Méthodes publiques

Méthode 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 méthode

public static GetHandle ( this window ) : IntPtr
window this
Résultat System.IntPtr

IsValid() public static méthode

public static IsValid ( this point ) : bool
point this
Résultat bool

ResetColumnWidths() public static méthode

public static ResetColumnWidths ( this gridView ) : void
gridView this
Résultat void

SetOwner() public static méthode

public static SetOwner ( this window, IntPtr owner ) : void
window this
owner System.IntPtr
Résultat void

SetProperty() public static méthode

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

SetWindowStylesForHud() public static méthode

public static SetWindowStylesForHud ( this window ) : void
window this
Résultat void

ToBitmapSource() public static méthode

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

ToBool() public static méthode

public static ToBool ( this source ) : bool
source this
Résultat bool

ToInt() public static méthode

public static ToInt ( this source ) : int
source this
Résultat int