New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class SpreadThemableFontFamily

Inheritance: objectSpreadThemableFontFamily

Constructors

Initializes a new instance of the SpreadThemableFontFamily class.

C#
public SpreadThemableFontFamily(SpreadThemeFontType themeFontType)
Parameters:themeFontTypeSpreadThemeFontType

Type of the theme font.

Initializes a new instance of the SpreadThemableFontFamily class.

C#
public SpreadThemableFontFamily(string fontFamily)
Parameters:fontFamilystring

The font family name.

Properties

Indicates whether the font family is resolved from the workbook theme instead of a fixed name.

C#
public bool IsFromTheme { get; }
Property Value:

The value indicating if the font family comes from a theme.

Concrete font family name when not using a theme font; null if theme-based.

C#
public string LocalValue { get; }
Property Value:

The local value of the font family.

Theme font role (Major/Minor) when theme-based.

C#
public SpreadThemeFontType ThemeFontType { get; }
Property Value:

The type of the theme font.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

Returns true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Returns a string that represents the document themable font family.

C#
public override string ToString()
Returns:

string

A string that represents the document themable font family.

Overrides: object.ToString()

Operators

Determines whether the specified document themable font families are different.

C#
public static bool operator !=(SpreadThemableFontFamily first, SpreadThemableFontFamily second)
Parameters:firstSpreadThemableFontFamilysecondSpreadThemableFontFamilyReturns:

bool

True if the document themable font families are different; otherwise, false.

Determines whether the specified document themable font families are equal.

C#
public static bool operator ==(SpreadThemableFontFamily first, SpreadThemableFontFamily second)
Parameters:firstSpreadThemableFontFamilysecondSpreadThemableFontFamilyReturns:

bool

True if the document themable font families are equal; otherwise, false.