Метод | Описание | |
---|---|---|
AddRange ( ICollection collection, IEnumerable elements ) : void | ||
CoerceValue ( double value, double minimum, double maximum ) : double |
Forces the value to stay between mininum and maximum.
|
|
CoerceValue ( int value, int minimum, int maximum ) : int |
Forces the value to stay between mininum and maximum.
|
|
CreateTypeface ( FrameworkElement fe ) : Typeface |
Creates typeface from the framework element.
|
|
GetAttributeOrNull ( XmlElement element, string attributeName ) : string |
Gets the value of the attribute, or null if the attribute does not exist.
|
|
GetBoolAttribute ( XmlElement element, string attributeName ) : bool? |
Gets the value of the attribute as boolean, or null if the attribute does not exist.
|
|
GetBoolAttribute ( XmlReader reader, string attributeName ) : bool? |
Gets the value of the attribute as boolean, or null if the attribute does not exist.
|
|
IsClose ( Size d1, Size d2 ) : bool |
Returns true if the doubles are close (difference smaller than 0.01).
|
|
IsClose ( Vector d1, Vector d2 ) : bool |
Returns true if the doubles are close (difference smaller than 0.01).
|
|
IsClose ( double d1, double d2 ) : bool |
Returns true if the doubles are close (difference smaller than 0.01).
|
|
Sequence ( value ) : IEnumerable |
Creates an IEnumerable with a single value.
|
|
ToSystemDrawing ( Point p ) : System.Drawing.Point | ||
ToWpf ( System.Drawing.Point p ) : Point | ||
ToWpf ( System.Drawing.Rectangle rect ) : Rect | ||
ToWpf ( System.Drawing.Size s ) : Size | ||
TransformFromDevice ( Point point, Visual visual ) : Point | ||
TransformFromDevice ( Rect rect, Visual visual ) : Rect | ||
TransformFromDevice ( Size size, Visual visual ) : Size | ||
TransformToDevice ( Point point, Visual visual ) : Point | ||
TransformToDevice ( Rect rect, Visual visual ) : Rect | ||
TransformToDevice ( Size size, Visual visual ) : Size | ||
VisualAncestorsAndSelf ( DependencyObject obj ) : IEnumerable |
Метод | Описание | |
---|---|---|
CheckIsFrozen ( Freezable f ) : void | ||
Log ( bool condition, string format ) : void |
public static AddRange ( ICollection collection, IEnumerable elements ) : void | ||
collection | ICollection | |
elements | IEnumerable | |
Результат | void |
public static CoerceValue ( double value, double minimum, double maximum ) : double | ||
value | double | |
minimum | double | |
maximum | double | |
Результат | double |
public static CoerceValue ( int value, int minimum, int maximum ) : int | ||
value | int | |
minimum | int | |
maximum | int | |
Результат | int |
public static CreateTypeface ( FrameworkElement fe ) : Typeface | ||
fe | FrameworkElement | |
Результат | Typeface |
public static GetAttributeOrNull ( XmlElement element, string attributeName ) : string | ||
element | XmlElement | |
attributeName | string | |
Результат | string |
public static GetBoolAttribute ( XmlElement element, string attributeName ) : bool? | ||
element | XmlElement | |
attributeName | string | |
Результат | bool? |
public static GetBoolAttribute ( XmlReader reader, string attributeName ) : bool? | ||
reader | XmlReader | |
attributeName | string | |
Результат | bool? |
public static IsClose ( Size d1, Size d2 ) : bool | ||
d1 | Size | |
d2 | Size | |
Результат | bool |
public static IsClose ( Vector d1, Vector d2 ) : bool | ||
d1 | Vector | |
d2 | Vector | |
Результат | bool |
public static IsClose ( double d1, double d2 ) : bool | ||
d1 | double | |
d2 | double | |
Результат | bool |
public static Sequence ( value ) : IEnumerable |
||
Результат | IEnumerable |
public static ToSystemDrawing ( Point p ) : System.Drawing.Point | ||
p | Point | |
Результат | System.Drawing.Point |
public static ToWpf ( System.Drawing.Point p ) : Point | ||
p | System.Drawing.Point | |
Результат | Point |
public static ToWpf ( System.Drawing.Rectangle rect ) : Rect | ||
rect | System.Drawing.Rectangle | |
Результат | Rect |
public static ToWpf ( System.Drawing.Size s ) : Size | ||
s | System.Drawing.Size | |
Результат | Size |
public static TransformFromDevice ( Point point, Visual visual ) : Point | ||
point | Point | |
visual | Visual | |
Результат | Point |
public static TransformFromDevice ( Rect rect, Visual visual ) : Rect | ||
rect | Rect | |
visual | Visual | |
Результат | Rect |
public static TransformFromDevice ( Size size, Visual visual ) : Size | ||
size | Size | |
visual | Visual | |
Результат | Size |
public static TransformToDevice ( Point point, Visual visual ) : Point | ||
point | Point | |
visual | Visual | |
Результат | Point |
public static TransformToDevice ( Rect rect, Visual visual ) : Rect | ||
rect | Rect | |
visual | Visual | |
Результат | Rect |
public static TransformToDevice ( Size size, Visual visual ) : Size | ||
size | Size | |
visual | Visual | |
Результат | Size |
public static VisualAncestorsAndSelf ( DependencyObject obj ) : IEnumerable |
||
obj | DependencyObject | |
Результат | IEnumerable |