Class
Font

Defines a particular format for text, including font face, size, and style attributes.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(FontConverter))]
public class Font

Inheritance: objectFont

Properties

Bold

Gets a value that indicates whether this Font is bold.

Declaration

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

Property Value

bool

true if this Font is bold; otherwise, false.

Italic

Gets a value that indicates whether this Font is italic.

Declaration

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

Property Value

bool

true if this Font is italic; otherwise, false.

Name

Gets or sets the face name of this Font.

Declaration

cs-api-definition
[TypeConverter("System.Drawing.FontConverter+FontNameConverter, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string Name { get; set; }

Property Value

string

A string representation of the face name of this Font.

Size

Gets or sets the size of this Font measured in Units.

Declaration

cs-api-definition
public Unit Size { get; set; }

Property Value

Unit

The Unit size of this Font.

Strikeout

Gets a value that indicates whether this Font specifies a horizontal line through the font.

Declaration

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

Property Value

bool

true if this Font has a horizontal line through it; otherwise, false.

Style

Gets or sets style information for this Font.

Declaration

cs-api-definition
[Browsable(false)]
public FontStyle Style { get; set; }

Property Value

FontStyle

A FontStyle enumeration that contains style information for this Font.

Underline

Gets a value that indicates whether this Font is underlined.

Declaration

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

Property Value

bool

true if this Font is underlined; otherwise, false.

Methods

ToString()

This member overrides ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string value describing the Font.

Overrides object.ToString()

Extension Methods