Struct FontStyle
Encodes the stylistic slant of a font (for example Normal, Italic, or Oblique) for selection and comparison.
Inherited Members
Namespace: Telerik.Documents.Core.Fonts
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public struct FontStyle
Constructors
FontStyle(Int32)
Initializes a new instance of FontStyle struct.
Declaration
public FontStyle(int styleId)
Parameters
|
System.Int32
styleId
|
Methods
Equals(Object)
Determines whether the specified object is equal to the current FontStyle.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The object to compare with the current instance. |
Returns
|
System.Boolean
True if the specified object is a FontStyle with the same style identifier; otherwise, false. |
Overrides
GetHashCode()
Returns a hash code for the current FontStyle.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A hash code derived from the underlying style identifier, suitable for use in hashing algorithms and data structures. |
Overrides
Operators
Equality(FontStyle, FontStyle)
Compare two styles for value equality.
Declaration
public static bool operator ==(FontStyle fs1, FontStyle fs2)
Parameters
|
FontStyle
fs1
First object to compare. |
|
FontStyle
fs2
Second object to compare. |
Returns
|
System.Boolean
Returns true when the font style values are equal for both objects, and false otherwise. |
Inequality(FontStyle, FontStyle)
Determine whether two styles differ.
Declaration
public static bool operator !=(FontStyle fs1, FontStyle fs2)
Parameters
|
FontStyle
fs1
First object to compare. |
|
FontStyle
fs2
Second object to compare. |
Returns
|
System.Boolean
Returns false when the font style values are equal for both objects, and true otherwise. |