Partager via


Font Members

Include Protected Members
Include Inherited Members

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

The Font type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property Background Returns or sets the type of background for text used in charts. Can be one of the XlBackground constants.
Public property Bold True if the font is bold.
Public property Color Returns or sets the primary color of the font.
Public property ColorIndex Returns or sets the color of the font.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property FontStyle Returns or sets the font style.
Public property Italic True if the font style is italic.
Public property Name Returns or sets the name of the object.
Public property OutlineFont True if the font is an outline font.
Public property Parent Returns the parent object for the specified object.
Public property Shadow True if the font is a shadow font or if the object has a shadow.
Public property Size Returns or sets the size of the font.
Public property Strikethrough True if the font is struck through with a horizontal line.
Public property Subscript True if the font is formatted as subscript. False by default.
Public property Superscript True if the font is formatted as superscript. False by default.
Public property ThemeColor Returns or sets the theme color in the applied color scheme that is associated with the specified object. Read/write Object.
Public property ThemeFont Returns or sets the theme font in the applied font scheme that is associated with the specified object. Read/write XlThemeFont.
Public property TintAndShade Returns or sets a Single that lightens or darkens a color.
Public property Underline Returns or sets the type of underline applied to the font.

Top

See Also

Reference

Font Interface

Microsoft.Office.Interop.Excel Namespace