Collection of miscellaneous extension methods that did not fit in anywhere else. Image.
More...
|
| static System.Drawing.Color | ToGdiColor (this Color clr) |
| | Convert a WPF color to a GDI color.
|
| |
| static Color | ToWpfColor (this System.Drawing.Color clr) |
| | Convert a GDI color to a WPF color.
|
| |
| static Size | ToWpfSize (this System.Drawing.Size s) |
| | Convert a System.Drawing.Size to a WPF Size.
|
| |
| static Size | ToWpfSize (this Size2D s) |
| | Convert a Size2D to a WPF Size.
|
| |
| static System.Drawing.Size | ToDrawingSize (this Size s) |
| | Convert a Size to a Forms System.Drawing.Size.
|
| |
| static Size2D | ToCvbSize (this Size s) |
| | Convert a Size to a Forms Size2D.
|
| |
| static void | RemoveAll< T > (this ItemCollection c) |
| | Remove all elements of a given type from an item collection.
|
| |
| static double | Length (this Point p) |
| | Calculate the length of a vector defined through a Point object.
|
| |
| static Point2Dd | ToPointD (this Point p) |
| | Point conversion.
|
| |
| static char | ToChar (this Key key) |
| | Convert a key state into a printable character.
|
| |
| static Cursor | ToCursor (this RectPos border) |
| | Gets an appropriate cursor object depending on border location.
|
| |
Collection of miscellaneous extension methods that did not fit in anywhere else. Image.
◆ Length()
| static double Length |
( |
this Point | p | ) |
|
|
static |
Calculate the length of a vector defined through a Point object.
- Parameters
-
- Returns
- Length (L2 norm).
◆ RemoveAll< T >()
| static void RemoveAll< T > |
( |
this ItemCollection | c | ) |
|
|
static |
Remove all elements of a given type from an item collection.
- Template Parameters
-
| T | Type of the items to be removed. |
- Parameters
-
| c | Collection from which to remove. |
◆ ToChar()
| static char ToChar |
( |
this Key | key | ) |
|
|
static |
Convert a key state into a printable character.
- Parameters
-
- Returns
- Printable representation of the key.
◆ ToCursor()
| static Cursor ToCursor |
( |
this RectPos | border | ) |
|
|
static |
Gets an appropriate cursor object depending on border location.
- Parameters
-
| border | Location to get cursor for. |
- Returns
- Appropriate cursor.
◆ ToCvbSize()
| static Size2D ToCvbSize |
( |
this Size | s | ) |
|
|
static |
Convert a Size to a Forms Size2D.
This method truncates floating point values.
- Parameters
-
- Returns
- Drawing size.
◆ ToDrawingSize()
| static System.Drawing.Size ToDrawingSize |
( |
this Size | s | ) |
|
|
static |
Convert a Size to a Forms System.Drawing.Size.
This method truncates floating point values.
- Parameters
-
- Returns
- Drawing size.
◆ ToGdiColor()
| static System.Drawing.Color ToGdiColor |
( |
this Color | clr | ) |
|
|
static |
Convert a WPF color to a GDI color.
- Parameters
-
| clr | colour to be converted |
- Returns
- converted color
◆ ToPointD()
| static Point2Dd ToPointD |
( |
this Point | p | ) |
|
|
static |
Point conversion.
- Parameters
-
| p | System.Windows.Point to be converted. |
- Returns
- Converted Stemmer.Cvb.PointD
◆ ToWpfColor()
| static Color ToWpfColor |
( |
this System.Drawing.Color | clr | ) |
|
|
static |
Convert a GDI color to a WPF color.
- Parameters
-
- Returns
- converted color
◆ ToWpfSize() [1/2]
| static Size ToWpfSize |
( |
this Size2D | s | ) |
|
|
static |
Convert a Size2D to a WPF Size.
- Parameters
-
- Returns
- WPF size.
◆ ToWpfSize() [2/2]
| static Size ToWpfSize |
( |
this System.Drawing.Size | s | ) |
|
|
static |
Convert a System.Drawing.Size to a WPF Size.
- Parameters
-
- Returns
- WPF size.