Share via


_Font Members

Include Protected Members
Include Inherited Members

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

The _Font type exposes the following members.

Methods

  Name Description
Public method Grow Increases the font size to the next available size. If the selection or range contains more than one font size, each size is increased to the next available setting.
Public method Reset Removes manual character formatting (formatting not applied using a style).
Public method SetAsTemplateDefault Sets the specified font formatting as the default for the active document and all new documents based on the active template. The default font formatting is stored in the Normal style.
Public method Shrink Decreases the font size to the next available size.

Top

Properties

  Name Description
Public property AllCaps True if the font is formatted as all capital letters. Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle (reverses the current setting). Read/write Integer.
Public property Animation Returns or sets the type of animation applied to the font.
Public property Application Returns a Application object that represents the Microsoft Word application.
Public property Bold True if the font or range is formatted as bold. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property BoldBi True if the font or range is formatted as bold. Returns True, False or wdUndefined (for a mixture of bold and non-bold text). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Borders Returns a Borders collection that represents all the borders for the specified object.
Public property Color Returns or sets the 24-bit color for the specified Font object.
Public property ColorIndex Returns or sets the color for the specified Border or Font object.
Public property ColorIndexBi Returns or sets the color for the specified Font object in a right-to-left language document.
Public property ContextualAlternates Specifies whether or not contextual alternates are enabled for the specified font.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Integer.
Public property DiacriticColor Returns or sets the 24-bit color to be used for diacritics for the specified Font object. Can be any valid WdColor constant or a value returned by Visual Basic's RGB function. Read/write.
Public property DisableCharacterSpaceGrid True if Microsoft Word ignores the number of characters per line for the corresponding Font object. Read/write Boolean.
Public property DoubleStrikeThrough True if the specified font is formatted as double strikethrough text. Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Duplicate Returns a read-only Font object that represents the character formatting of the specified font.
Public property Emboss True if the specified font is formatted as embossed. Returns True, False, or wdUndefined. Can be set to True, False, or wdToggle. Read/write Integer.
Public property EmphasisMark Returns or sets the emphasis mark for a character or designated character string.
Public property Engrave True if the font is formatted as engraved. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Fill Gets a FillFormat object that contains fill formatting properties for the font used by the specified range of text.
Public property Glow Gets a GlowFormat object that represents the glow formatting for the font used by the specified range of text.
Public property Hidden True if the font is formatted as hidden text. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Italic True if the font or range is formatted as italic. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property ItalicBi True if the font or range is formatted as italic. Returns True, False or wdUndefined (for a mixture of italic and non-italic text). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Kerning Returns or sets the minimum font size for which Microsoft Word will adjust kerning automatically. Read/write Single.
Public property Ligatures Gets or sets the ligatures setting for the specified Font object.
Public property Line Gets a LineFormat object that specifies the formatting for a line.
Public property Name Returns or sets the name of the specified object. Read/write String.
Public property NameAscii Returns or sets the font used for Latin text (characters with character codes from 0 (zero) through 127). Read/write String.
Public property NameBi Returns or sets the name of the font in a right-to-left language document. Read/write String.
Public property NameFarEast Returns or sets an East Asian font name. Read/write String.
Public property NameOther Returns or sets the font used for characters with character codes from 128 through 255. Read/write String.
Public property NumberForm Returns or sets the number form setting for an OpenType font.
Public property NumberSpacing Gets or sets the number spacing setting for a font.
Public property Outline True if the font is formatted as outline. Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Parent Returns an object that represents the parent object of the specified object.
Public property Position Returns or sets the position of text (in points) relative to the base line. A positive number raises the text, and a negative number lowers it. Read/write Integer.
Public property Reflection Gets a ReflectionFormat object that represents the reflection formatting for a shape.
Public property Scaling Returns or sets the scaling percentage applied to the font. This property stretches or compresses text horizontally as a percentage of the current size (the scaling range is from 1 through 600). Read/write Integer.
Public property Shading Returns a Shading object that refers to the shading formatting for the specified object.
Public property Shadow True if the specified font is formatted as shadowed. Can be True, False, or wdUndefined. Read/write Integer.
Public property Size Returns or sets the font size in points. Read/write Single.
Public property SizeBi Returns or sets the font size in points. Read/write Single.
Public property SmallCaps True if the font is formatted as small capital letters. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Spacing Returns or sets the spacing (in points) between characters. Read/write Single.
Public property StrikeThrough True if the font is formatted as strikethrough text. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property StylisticSet Gets or sets the stylistic set for the specified font.
Public property Subscript True if the font is formatted as subscript. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Integer.
Public property Superscript True if the font is formatted as superscript. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Long.
Public property TextColor Gets a ColorFormat object that represents the color for the specified font.
Public property TextShadow Gets a ShadowFormat object that specifies the shadow formatting for the specified font.
Public property ThreeD Gets a ThreeDFormat object that contains 3-D effect formatting properties for the specified font.
Public property Underline Returns or sets the type of underline applied to the font. Read/write WdUnderline.
Public property UnderlineColor Returns or sets the 24-bit color of the underline for the specified Font object.

Top

See Also

Reference

_Font Interface

Microsoft.Office.Interop.Word Namespace