Class
FontProperties

Represents fonts properties class.

Definition

Namespace:Telerik.WinForms.Spreadsheet.Documents.Core.Fonts

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

cs-api-definition
public class FontProperties

Inheritance: objectFontProperties

Constructors

FontProperties(FontFamily)

Initializes a new instance of the FontProperties class.

Declaration

cs-api-definition
public FontProperties(FontFamily fontFamily)

Parameters

fontFamily

FontFamily

The font family.

FontProperties(FontFamily, FontStyle, FontWeight)

Initializes a new instance of the FontProperties class.

Declaration

cs-api-definition
public FontProperties(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight)

Parameters

fontFamily

FontFamily

The font family.

fontStyle

FontStyle

The font style.

fontWeight

FontWeight

The font weight.

Properties

FontFamily

Gets the font family.

Declaration

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

Property Value

FontFamily

The font family.

FontFamilyName

Gets font family name.

Declaration

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

Property Value

string

The name of the font family.

FontStyle

Gets the font style.

Declaration

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

Property Value

FontStyle

The font style.

FontWeight

Gets the font weight.

Declaration

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

Property Value

FontWeight

The font weight.

IsMonoSpaced

Gets if font is mono spaced.

Declaration

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

Property Value

bool

The is mono spaced.

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 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()