Struct FontProperties
Immutable descriptor for font characteristics including family, size, weight, style, color, and underline used in cell formatting.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public struct FontProperties : IFontProperties
Constructors
FontProperties(FontFamily, Double, Boolean)
Initializes a new FontProperties with the specified family, size, and weight.
Declaration
public FontProperties(FontFamily fontFamily, double fontSize, bool isBold)
Parameters
|
System.Windows.Media.FontFamily
fontFamily
The font family. |
|
System.Double
fontSize
Size of the font. |
|
System.Boolean
isBold
The value indicating whether the font is bold. |
Properties
FontFamily
Gets the typeface family name used to render text.
Declaration
public FontFamily FontFamily { get; }
Property Value
|
System.Windows.Media.FontFamily
The font family. |
Implements
FontSize
Gets the font size in points.
Declaration
public double FontSize { get; }
Property Value
|
System.Double
The size of the font. |
Implements
FontStyle
Gets the platform-specific font style derived from IsItalic.
Declaration
public FontStyle FontStyle { get; }
Property Value
|
System.Windows.FontStyle
The font style. |
Implements
FontWeight
Gets the platform-specific font weight derived from IsBold.
Declaration
public FontWeight FontWeight { get; }
Property Value
|
System.Windows.FontWeight
The font weight. |
Implements
ForeColor
Gets the text color, which may reference a theme color or an explicit RGB value.
Declaration
public ThemableColor ForeColor { get; }
Property Value
|
ThemableColor
The font color. |
Implements
IsBold
Gets whether the font uses bold weight.
Declaration
public bool IsBold { get; }
Property Value
|
System.Boolean
The value indicating whether the font is bold. |
Implements
IsItalic
Gets whether the font uses italic style.
Declaration
public bool IsItalic { get; }
Property Value
|
System.Boolean
The value indicating whether the font is italic. |
Implements
IsMonospaced
Gets or sets whether the font is monospaced (fixed-width), determined by font family or explicit override.
Declaration
public bool IsMonospaced { get; set; }
Property Value
|
System.Boolean
The value indicating whether the text is monospaced. |
Implements
Underline
Gets the underline style applied to text (None, Single, Double, etc.).
Declaration
public UnderlineType Underline { get; }
Property Value
|
UnderlineType
The underline. |
Implements
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
|
System.Boolean
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A hash code for the current System.Object. |
Overrides
Operators
Equality(FontProperties, FontProperties)
Implements the equals operator.
Declaration
public static bool operator ==(FontProperties left, FontProperties right)
Parameters
|
FontProperties
left
The left value. |
|
FontProperties
right
The right value. |
Returns
|
System.Boolean
The result of the operator. |
Inequality(FontProperties, FontProperties)
Implements the not equals operator.
Declaration
public static bool operator !=(FontProperties left, FontProperties right)
Parameters
|
FontProperties
left
The left value. |
|
FontProperties
right
The right value. |
Returns
|
System.Boolean
The result of the operator. |