Collection of miscellaneous extension methods that did not fit in anywhere else. Image. More...
Static Public Member Functions | |
static System.Drawing.Color | ToGdiColor (this System.Windows.Media.Color clr) |
Convert a WPF color to a GDI color. More... | |
static System.Windows.Media.Color | ToWpfColor (this System.Drawing.Color clr) |
Convert a GDI color to a WPF color. More... | |
static System.Windows.Size | ToWpfSize (this System.Drawing.Size s) |
Convert a System.Drawing.Size to a WPF System.Windows.Size. More... | |
static System.Windows.Size | ToWpfSize (this Size2D s) |
Convert a Stemmer.Cvb.Size2D to a WPF System.Windows.Size. More... | |
static System.Drawing.Size | ToDrawingSize (this System.Windows.Size s) |
Convert a System.Windows.Size to a Forms System.Drawing.Size. More... | |
static Stemmer.Cvb.Size2D | ToCvbSize (this System.Windows.Size s) |
Convert a System.Windows.Size to a Forms Stemmer.Cvb.Size2D. More... | |
static void | RemoveAll< T > (this ItemCollection c) |
Remove all elements of a given type from an item collection. More... | |
static double | Length (this Point p) |
Calculate the length of a vector defined through a Point object. More... | |
static Point2Dd | ToPointD (this Point p) |
Point conversion. More... | |
static char | ToChar (this Key key) |
Convert a key state into a printable character. More... | |
static Cursor | ToCursor (this RectPos border) |
Gets an appropriate cursor object depending on border location. More... | |
Collection of miscellaneous extension methods that did not fit in anywhere else. Image.
|
static |
Calculate the length of a vector defined through a Point object.
p | Point to calculate for. |
|
static |
Remove all elements of a given type from an item collection.
T | Type of the items to be removed. |
c | Collection from which to remove. |
T | : | class |
|
static |
Convert a key state into a printable character.
key | Key value to convert. |
|
static |
Gets an appropriate cursor object depending on border location.
border | Location to get cursor for. |
|
static |
Convert a System.Windows.Size to a Forms Stemmer.Cvb.Size2D.
This method truncates floating point values.
s | Size to convert. |
|
static |
Convert a System.Windows.Size to a Forms System.Drawing.Size.
This method truncates floating point values.
s | Size to convert. |
|
static |
Convert a WPF color to a GDI color.
clr | colour to be converted |
|
static |
Point conversion.
p | System.Windows.Point to be converted. |
|
static |
Convert a GDI color to a WPF color.
clr | color to be converted |
|
static |
Convert a Stemmer.Cvb.Size2D to a WPF System.Windows.Size.
s | Size to convert. |
|
static |
Convert a System.Drawing.Size to a WPF System.Windows.Size.
s | Size to convert. |