Font Font 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 Application Application

Returns an Application object that represents the Microsoft Excel application.

Background Background Background

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

Bold Bold Bold

True if the font is bold.

Color Color Color

Returns or sets the primary color of the font.

ColorIndex ColorIndex ColorIndex

Returns or sets the color of the font.

Creator Creator Creator

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

FontStyle FontStyle FontStyle

Returns or sets the font style.

Italic Italic Italic

True if the font style is italic.

Name Name Name

Returns or sets the name of the object.

OutlineFont OutlineFont OutlineFont

True if the font is an outline font.

Parent Parent Parent

Returns the parent object for the specified object.

Shadow Shadow Shadow

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

Size Size Size

Returns or sets the size of the font.

Strikethrough Strikethrough Strikethrough

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

Subscript Subscript Subscript

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

Superscript Superscript Superscript

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

ThemeColor ThemeColor ThemeColor

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

ThemeFont ThemeFont ThemeFont

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

TintAndShade TintAndShade TintAndShade

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

Underline Underline Underline

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

Applies to