ClassSpreadThemableFontFamily
Font family reference that can point to a concrete font name or a theme font slot.
Definition
Namespace:Telerik.Documents.SpreadsheetStreaming
Assembly:Telerik.Documents.SpreadsheetStreaming.dll
Syntax:
public class SpreadThemableFontFamily
Inheritance: objectSpreadThemableFontFamily
Constructors
SpreadThemableFontFamily(SpreadThemeFontType)
Initializes a new instance of the SpreadThemableFontFamily class.
Declaration
public SpreadThemableFontFamily(SpreadThemeFontType themeFontType)
Parameters
themeFontType
Type of the theme font.
SpreadThemableFontFamily(string)
Initializes a new instance of the SpreadThemableFontFamily class.
Declaration
public SpreadThemableFontFamily(string fontFamily)
Parameters
fontFamily
The font family name.
Properties
IsFromTheme
Indicates whether the font family is resolved from the workbook theme instead of a fixed name.
Declaration
public bool IsFromTheme { get; }
Property Value
The value indicating if the font family comes from a theme.
LocalValue
Concrete font family name when not using a theme font; null if theme-based.
Declaration
public string LocalValue { get; }
Property Value
The local value of the font family.
ThemeFontType
Theme font role (Major/Minor) when theme-based.
Declaration
public SpreadThemeFontType ThemeFontType { get; }
Property Value
The type of the theme font.
Methods
GetHashCode()
Serves as a hash function for a particular type.
ToString()
Returns a string that represents the document themable font family.
Declaration
public override string ToString()
Returns
A string that represents the document themable font family.
Overrides
Operators
operator !=(SpreadThemableFontFamily, SpreadThemableFontFamily)
Determines whether the specified document themable font families are different.
Declaration
public static bool operator !=(SpreadThemableFontFamily first, SpreadThemableFontFamily second)
Parameters
first
second
Returns
True if the document themable font families are different; otherwise, false.
operator ==(SpreadThemableFontFamily, SpreadThemableFontFamily)
Determines whether the specified document themable font families are equal.
Declaration
public static bool operator ==(SpreadThemableFontFamily first, SpreadThemableFontFamily second)
Parameters
first
second
Returns
True if the document themable font families are equal; otherwise, false.