StructFontProperties
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
FontProperties(FontFamily, double, bool)
Initializes a new FontProperties with the specified family, size, and weight.
Declaration
public FontProperties(FontFamily fontFamily, double fontSize, bool isBold)
Parameters
fontFamily
The font family.
fontSize
Size of the font.
isBold
The value indicating whether the font is bold.
Properties
FontFamily
Gets the typeface family name used to render text.
Declaration
public readonly FontFamily FontFamily { get; }
Property Value
The font family.
Implements
FontSize
Gets the font size in points.
Declaration
public readonly double FontSize { get; }
Property Value
The size of the font.
Implements
FontStyle
Gets the platform-specific font style derived from IsItalic.
Declaration
public FontStyle FontStyle { get; }
Property Value
The font style.
Implements
FontWeight
Gets the platform-specific font weight derived from IsBold.
Declaration
public FontWeight FontWeight { get; }
Property Value
The font weight.
Implements
ForeColor
Gets the text color, which may reference a theme color or an explicit RGB value.
Declaration
public readonly ThemableColor ForeColor { get; }
Property Value
The font color.
Implements
IsBold
Gets whether the font uses bold weight.
Declaration
public readonly bool IsBold { get; }
Property Value
The value indicating whether the font is bold.
Implements
IsItalic
Gets whether the font uses italic style.
Declaration
public readonly bool IsItalic { get; }
Property Value
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
The value indicating whether the text is monospaced.
Implements
Underline
Gets the underline style applied to text (None, Single, Double, etc.).
Declaration
public readonly UnderlineType Underline { get; }
Property Value
The underline.
Implements
Methods
GetHashCode()
Serves as a hash function for a particular type.
Operators
operator !=(FontProperties, FontProperties)
Implements the not equals operator.
Declaration
public static bool operator !=(FontProperties left, FontProperties right)
Parameters
left
The left value.
right
The right value.
Returns
The result of the operator.
operator ==(FontProperties, FontProperties)
Implements the equals operator.
Declaration
public static bool operator ==(FontProperties left, FontProperties right)
Parameters
left
The left value.
right
The right value.
Returns
The result of the operator.