Struct
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:

cs-api-definition
public struct FontProperties : IFontProperties

Implements: IFontProperties

Inherited Members ValueType.ToString()

Constructors

FontProperties(FontFamily, double, bool)

Initializes a new FontProperties with the specified family, size, and weight.

Declaration

cs-api-definition
public FontProperties(FontFamily fontFamily, double fontSize, bool isBold)

Parameters

fontFamily

FontFamily

The font family.

fontSize

double

Size of the font.

isBold

bool

The value indicating whether the font is bold.

Properties

FontFamily

Gets the typeface family name used to render text.

Declaration

cs-api-definition
public readonly FontFamily FontFamily { get; }

Property Value

FontFamily

The font family.

Implements IFontProperties.FontFamily

FontSize

Gets the font size in points.

Declaration

cs-api-definition
public readonly double FontSize { get; }

Property Value

double

The size of the font.

Implements IFontProperties.FontSize

FontStyle

Gets the platform-specific font style derived from IsItalic.

Declaration

cs-api-definition
public FontStyle FontStyle { get; }

Property Value

FontStyle

The font style.

Implements IFontProperties.FontStyle

FontWeight

Gets the platform-specific font weight derived from IsBold.

Declaration

cs-api-definition
public FontWeight FontWeight { get; }

Property Value

FontWeight

The font weight.

Implements IFontProperties.FontWeight

ForeColor

Gets the text color, which may reference a theme color or an explicit RGB value.

Declaration

cs-api-definition
public readonly ThemableColor ForeColor { get; }

Property Value

ThemableColor

The font color.

Implements IFontProperties.ForeColor

IsBold

Gets whether the font uses bold weight.

Declaration

cs-api-definition
public readonly bool IsBold { get; }

Property Value

bool

The value indicating whether the font is bold.

Implements IFontProperties.IsBold

IsItalic

Gets whether the font uses italic style.

Declaration

cs-api-definition
public readonly bool IsItalic { get; }

Property Value

bool

The value indicating whether the font is italic.

Implements IFontProperties.IsItalic

IsMonospaced

Gets or sets whether the font is monospaced (fixed-width), determined by font family or explicit override.

Declaration

cs-api-definition
public bool IsMonospaced { get; set; }

Property Value

bool

The value indicating whether the text is monospaced.

Implements IFontProperties.IsMonospaced

Underline

Gets the underline style applied to text (None, Single, Double, etc.).

Declaration

cs-api-definition
public readonly UnderlineType Underline { get; }

Property Value

UnderlineType

The underline.

Implements IFontProperties.Underline

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

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

Overrides ValueType.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 ValueType.GetHashCode()

Operators

operator !=(FontProperties, FontProperties)

Implements the not equals operator.

Declaration

cs-api-definition
public static bool operator !=(FontProperties left, FontProperties right)

Parameters

left

FontProperties

The left value.

right

FontProperties

The right value.

Returns

bool

The result of the operator.

operator ==(FontProperties, FontProperties)

Implements the equals operator.

Declaration

cs-api-definition
public static bool operator ==(FontProperties left, FontProperties right)

Parameters

left

FontProperties

The left value.

right

FontProperties

The right value.

Returns

bool

The result of the operator.