New to Telerik UI for WinFormsStart a free 30-day trial

Represents fonts properties class.

Definition

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

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class FontProperties

Inheritance: objectFontProperties

Constructors

Initializes a new instance of the FontProperties class.

C#
public FontProperties(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight)
Parameters:fontFamilyFontFamily

The font family.

fontStyleFontStyle

The font style.

fontWeightFontWeight

The font weight.

Initializes a new instance of the FontProperties class.

C#
public FontProperties(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family.

Properties

Gets the font family.

C#
public FontFamily FontFamily { get; }
Property Value:

The font family.

Gets font family name.

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

The name of the font family.

Gets the font style.

C#
public FontStyle FontStyle { get; }
Property Value:

The font style.

Gets the font weight.

C#
public FontWeight FontWeight { get; }
Property Value:

The font weight.

Gets if font is mono spaced.

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

The is mono spaced.

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

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