Struct FontStretch
Inherited Members
Namespace: Telerik.WinControls.SyntaxEditor.UI
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public struct FontStretch : IFormattable
Methods
Compare(FontStretch, FontStretch)
Compares two instances of System.Windows.FontStretch objects.
Declaration
public static int Compare(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
The first System.Windows.FontStretch object to compare. |
|
FontStretch
right
The second System.Windows.FontStretch object to compare. |
Returns
|
System.Int32
An System.Int32 value that represents the relationship between the two instances of System.Windows.FontStretch. |
Equals(Object)
Compares a System.Object with the current System.Windows.FontStretch object.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The instance of the System.Object to compare for equality. |
Returns
|
System.Boolean
true if two instances are equal; otherwise, false. |
Overrides
Equals(FontStretch)
Compares a System.Windows.FontStretch object with the current System.Windows.FontStretch object.
Declaration
public bool Equals(FontStretch obj)
Parameters
|
FontStretch
obj
The instance of the System.Windows.FontStretch object to compare for equality. |
Returns
|
System.Boolean
true if two instances are equal; otherwise, false. |
FromOpenTypeStretch(Int32)
Creates a new instance of System.Windows.FontStretch that corresponds to the OpenType usStretchClass value.
Declaration
public static FontStretch FromOpenTypeStretch(int stretchValue)
Parameters
|
System.Int32
stretchValue
An integer value between one and nine that corresponds to the usStretchValue definition in the OpenType specification. |
Returns
|
FontStretch
A new instance of System.Windows.FontStretch. |
GetHashCode()
Retrieves the hash code for this object.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
An System.Int32 value representing the hash code for the object. |
Overrides
ToOpenTypeStretch()
Returns a value that represents the OpenType usStretchClass for this System.Windows.FontStretch object.
Declaration
public int ToOpenTypeStretch()
Returns
|
System.Int32
An integer value between 1 and 999 that corresponds to the usStretchClass definition in the OpenType specification. |
ToString()
Creates a System.String representation of the current System.Windows.FontStretch object based on the current culture.
Declaration
public override string ToString()
Returns
|
System.String
A System.String value representation of the object. |
Overrides
Operators
Equality(FontStretch, FontStretch)
Compares two instances of System.Windows.FontStretch for equality.
Declaration
public static bool operator ==(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
First instance of System.Windows.FontStretch to compare. |
|
FontStretch
right
Second instance of System.Windows.FontStretch to compare. |
Returns
|
System.Boolean
true when the specified System.Windows.FontStretch objects are equal; otherwise, false. |
GreaterThan(FontStretch, FontStretch)
Evaluates two instances of System.Windows.FontStretch to determine if one instance is greater than the other.
Declaration
public static bool operator>(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
First instance of System.Windows.FontStretch to compare. |
|
FontStretch
right
Second instance of System.Windows.FontStretch to compare. |
Returns
|
System.Boolean
true if |
GreaterThanOrEqual(FontStretch, FontStretch)
Evaluates two instances of System.Windows.FontStretch to determine whether one instance is greater than or equal to the other.
Declaration
public static bool operator >=(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
The first instance of System.Windows.FontStretch to compare. |
|
FontStretch
right
The second instance of System.Windows.FontStretch to compare. |
Returns
|
System.Boolean
true if |
Inequality(FontStretch, FontStretch)
Evaluates two instances of System.Windows.FontStretch to determine inequality.
Declaration
public static bool operator !=(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
The first instance of System.Windows.FontStretch to compare. |
|
FontStretch
right
The second instance of System.Windows.FontStretch to compare. |
Returns
|
System.Boolean
false if |
LessThan(FontStretch, FontStretch)
Evaluates two instances of System.Windows.FontStretch to determine whether one instance is less than the other.
Declaration
public static bool operator <(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
The first instance of System.Windows.FontStretch to compare. |
|
FontStretch
right
The second instance of System.Windows.FontStretch to compare. |
Returns
|
System.Boolean
true if |
LessThanOrEqual(FontStretch, FontStretch)
Evaluates two instances of System.Windows.FontStretch to determine whether one instance is less than or equal to the other.
Declaration
public static bool operator <=(FontStretch left, FontStretch right)
Parameters
|
FontStretch
left
The first instance of System.Windows.FontStretch to compare. |
|
FontStretch
right
The second instance of System.Windows.FontStretch to compare. |
Returns
|
System.Boolean
true if |
Explicit Interface Implementations
IFormattable.ToString(String, IFormatProvider)
For a description of this member, see System.IFormattable.ToString(System.String, System.IFormatProvider).
Declaration
string IFormattable.ToString(string format, IFormatProvider provider)
Parameters
|
System.String
format
The System.String specifying the format to use.-or- null to use the default format defined for the type of the System.IFormattable implementation. |
|
System.IFormatProvider
provider
The System.IFormatProvider to use to format the value.-or- null to obtain the numeric format information from the current locale setting of the operating system. |
Returns
|
System.String
A System.String containing the value of the current instance in the specified format. |