C# Class trello.Extensions.UiElementExtensions

Datei anzeigen Open project: Bunk/trellow

Public Methods

Method Description
ContainsInclusive ( this rect, Point point ) : bool
GetMidpoint ( this point, Size size ) : Point
GetRelativePositionIn ( this element, UIElement other ) : Point
GetRelativePositionIn ( this element, UIElement context, Point offset ) : Point
Midpoint ( this rect ) : Point

Method Details

ContainsInclusive() public static method

public static ContainsInclusive ( this rect, Point point ) : bool
rect this
point System.Windows.Point
return bool

GetMidpoint() public static method

public static GetMidpoint ( this point, Size size ) : Point
point this
size System.Windows.Size
return System.Windows.Point

GetRelativePositionIn() public static method

public static GetRelativePositionIn ( this element, UIElement other ) : Point
element this
other System.Windows.UIElement
return System.Windows.Point

GetRelativePositionIn() public static method

public static GetRelativePositionIn ( this element, UIElement context, Point offset ) : Point
element this
context System.Windows.UIElement
offset System.Windows.Point
return System.Windows.Point

Midpoint() public static method

public static Midpoint ( this rect ) : Point
rect this
return System.Windows.Point