Skip to end of metadata
Go to start of metadata

Description

The Font object represents a font style that you can use when creating a reusable Style object, or when setting the style of a cell or set of cells. To set or return a Font object, use Style.Font.

C#
vb.net

Examples

C#
vb.net

Properties

Name

Description

Bold

Sets or returns whether text will be displayed in bold face.

Color

Sets or returns the color of the font.

Italic

Sets or returns whether text will be italicized.

Name

Sets or returns the name of the font (e.g., "Arial"). The font must be available on the client's system for Excel to use it; if it is not available, Excel will use a default font.

ScriptStyle

Sets or returns the vertical position of the font in relation to other text.

Size

Sets or returns the font size, in points.

Strikethrough

Sets or returns whether strikethrough formatting will be applied to the font.

Underline

Sets or returns the underline style for this font.

Nested Classes

Name

Description

UnderlineStyle

An UnderlineStyle value specifies an underline style for a font.

VerticalPosition

A vertical value specifies the vertical position of a font in relation to other text.
  • No labels