FontProperties
Immutable descriptor for font characteristics including family, size, weight, style, color, and underline used in cell formatting.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public struct FontProperties : IFontProperties
Implements:
Inherited Members
Constructors
Initializes a new FontProperties with the specified family, size, and weight.
Properties
FontFamily
FontFamily
Gets the typeface family name used to render text.
public readonly FontFamily FontFamily { get; }
The font family.
Implements:
Gets the font size in points.
public readonly double FontSize { get; }
The size of the font.
Implements:
FontStyle
FontStyle
Gets the platform-specific font style derived from IsItalic.
public FontStyle FontStyle { get; }
The font style.
Implements:
FontWeight
FontWeight
Gets the platform-specific font weight derived from IsBold.
public FontWeight FontWeight { get; }
The font weight.
Implements:
Gets the text color, which may reference a theme color or an explicit RGB value.
public readonly ThemableColor ForeColor { get; }
The font color.
Implements:
Gets whether the font uses bold weight.
public readonly bool IsBold { get; }
The value indicating whether the font is bold.
Implements:
Gets whether the font uses italic style.
public readonly bool IsItalic { get; }
The value indicating whether the font is italic.
Implements:
Gets or sets whether the font is monospaced (fixed-width), determined by font family or explicit override.
public bool IsMonospaced { get; set; }
The value indicating whether the text is monospaced.
Implements:
Gets whether the font uses strikethrough decoration.
public readonly bool IsStrikethrough { get; }
The value indicating whether the font is strikethrough.
Implements:
Gets the underline style applied to text (None, Single, Double, etc.).
public readonly UnderlineType Underline { get; }
The underline.
Implements:
Gets the vertical text alignment (none, superscript, or subscript) applied to the font.
public readonly VerticalTextAlignment VerticalTextAlignment { get; }
The vertical text alignment.
Implements:
Methods
Operators
Implements the not equals operator.
public static bool operator !=(FontProperties left, FontProperties right)
The left value.
rightFontPropertiesThe right value.
Returns:The result of the operator.
Implements the equals operator.
public static bool operator ==(FontProperties left, FontProperties right)
The left value.
rightFontPropertiesThe right value.
Returns:The result of the operator.