Edit

Share via


Font Interface

Definition

Contains the font attributes (font name, font size, color, and so on) for an object.

public interface class Font
[System.Runtime.InteropServices.Guid("0002084D-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Font
Public Interface Font
Attributes

Remarks

Use the Font property to return the Font object.

If you don’t want to format all the text in a cell or graphic the same way, use the Characters[Object, Object] property to return a subset of the text.

Properties

Application

Returns an Application object that represents the Microsoft Excel application.

Background

Returns or sets the type of background for text used in charts. Can be one of the XlBackground constants.

Bold

True if the font is bold.

Color

Returns or sets the primary color of the font.

ColorIndex

Returns or sets the color of the font.

Creator

Returns a 32-bit integer that indicates the application in which this object was created.

FontStyle

Returns or sets the font style.

Italic

True if the font style is italic.

Name

Returns or sets the name of the object.

OutlineFont

True if the font is an outline font.

Parent

Returns the parent object for the specified object.

Shadow

True if the font is a shadow font or if the object has a shadow.

Size

Returns or sets the size of the font.

Strikethrough

True if the font is struck through with a horizontal line.

Subscript

True if the font is formatted as subscript. False by default.

Superscript

True if the font is formatted as superscript. False by default.

ThemeColor

Returns or sets the theme color in the applied color scheme that is associated with the specified object. Read/write Object.

ThemeFont

Returns or sets the theme font in the applied font scheme that is associated with the specified object. Read/write XlThemeFont.

TintAndShade

Returns or sets a Single that lightens or darkens a color.

Underline

Returns or sets the type of underline applied to the font.

Applies to