Class
SpreadThemableFontFamily

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:

cs-api-definition
public class SpreadThemableFontFamily

Inheritance: objectSpreadThemableFontFamily

Constructors

SpreadThemableFontFamily(SpreadThemeFontType)

Initializes a new instance of the SpreadThemableFontFamily class.

Declaration

cs-api-definition
public SpreadThemableFontFamily(SpreadThemeFontType themeFontType)

Parameters

themeFontType

SpreadThemeFontType

Type of the theme font.

SpreadThemableFontFamily(string)

Initializes a new instance of the SpreadThemableFontFamily class.

Declaration

cs-api-definition
public SpreadThemableFontFamily(string fontFamily)

Parameters

fontFamily

string

The font family name.

Properties

IsFromTheme

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

Declaration

cs-api-definition
public bool IsFromTheme { get; }

Property Value

bool

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

cs-api-definition
public string LocalValue { get; }

Property Value

string

The local value of the font family.

ThemeFontType

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

Declaration

cs-api-definition
public SpreadThemeFontType ThemeFontType { get; }

Property Value

SpreadThemeFontType

The type of the theme font.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

ToString()

Returns a string that represents the document themable font family.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the document themable font family.

Overrides object.ToString()

Operators

operator !=(SpreadThemableFontFamily, SpreadThemableFontFamily)

Determines whether the specified document themable font families are different.

Declaration

cs-api-definition
public static bool operator !=(SpreadThemableFontFamily first, SpreadThemableFontFamily second)

Parameters

first

SpreadThemableFontFamily

second

SpreadThemableFontFamily

Returns

bool

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

cs-api-definition
public static bool operator ==(SpreadThemableFontFamily first, SpreadThemableFontFamily second)

Parameters

first

SpreadThemableFontFamily

second

SpreadThemableFontFamily

Returns

bool

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