Font Font Font Interface

Definition

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

public interface class Font : Microsoft::Office::Interop::Word::_Font
[System.Runtime.InteropServices.Guid("00020952-0000-0000-C000-000000000046")]
public interface Font : Microsoft.Office.Interop.Word._Font
Public Interface Font
Implements _Font
Derived
Attributes
Implements

Remarks

This is a COM class interface that is required for COM interoperability. This interface defines no members of its own. You use this interface to access the members of the class interface from which this interface inherits. For information about the inherited interface, including a link to the members it defines, see the following topic: _Font.

Use the Font property to return the Font object.

You can use the New keyword to create a new, standalone Font object.

You can also duplicate a Font object by using the Duplicate property.

Properties

AllCaps AllCaps 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.

(Inherited from _Font)

Animation Animation Animation

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Font)

Application Application Application

Returns a Application object that represents the Microsoft Word application.

(Inherited from _Font)

Bold Bold 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.

(Inherited from _Font)

BoldBi BoldBi 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.

(Inherited from _Font)

Borders Borders Borders

Returns a Borders collection that represents all the borders for the specified object.

(Inherited from _Font)

Color Color Color

Returns or sets the 24-bit color for the specified Font object.

(Inherited from _Font)

ColorIndex ColorIndex ColorIndex

Returns or sets the color for the specified Border or Font object.

(Inherited from _Font)

ColorIndexBi ColorIndexBi ColorIndexBi

Returns or sets the color for the specified Font object in a right-to-left language document.

(Inherited from _Font)

ContextualAlternates ContextualAlternates ContextualAlternates

Specifies whether or not contextual alternates are enabled for the specified font.

(Inherited from _Font)

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Integer.

(Inherited from _Font)

DiacriticColor DiacriticColor 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.

(Inherited from _Font)

DisableCharacterSpaceGrid DisableCharacterSpaceGrid DisableCharacterSpaceGrid

True if Microsoft Word ignores the number of characters per line for the corresponding Font object. Read/write Boolean.

(Inherited from _Font)

DoubleStrikeThrough DoubleStrikeThrough 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.

(Inherited from _Font)

Duplicate Duplicate Duplicate

Returns a read-only Font object that represents the character formatting of the specified font.

(Inherited from _Font)

Emboss Emboss 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.

(Inherited from _Font)

EmphasisMark EmphasisMark EmphasisMark

Returns or sets the emphasis mark for a character or designated character string.

(Inherited from _Font)

Engrave Engrave 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.

(Inherited from _Font)

Fill Fill Fill

Gets a FillFormat object that contains fill formatting properties for the font used by the specified range of text.

(Inherited from _Font)

Glow Glow Glow

Gets a GlowFormat object that represents the glow formatting for the font used by the specified range of text.

(Inherited from _Font)

Hidden Hidden 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.

(Inherited from _Font)

Italic Italic 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.

(Inherited from _Font)

ItalicBi ItalicBi 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.

(Inherited from _Font)

Kerning Kerning Kerning

Returns or sets the minimum font size for which Microsoft Word will adjust kerning automatically. Read/write Single.

(Inherited from _Font)

Ligatures Ligatures Ligatures

Gets or sets the ligatures setting for the specified Font object.

(Inherited from _Font)

Line Line Line

Gets a LineFormat object that specifies the formatting for a line.

(Inherited from _Font)

Name Name Name

Returns or sets the name of the specified object. Read/write String.

(Inherited from _Font)

NameAscii NameAscii NameAscii

Returns or sets the font used for Latin text (characters with character codes from 0 (zero) through 127). Read/write String.

(Inherited from _Font)

NameBi NameBi NameBi

Returns or sets the name of the font in a right-to-left language document. Read/write String.

(Inherited from _Font)

NameFarEast NameFarEast NameFarEast

Returns or sets an East Asian font name. Read/write String.

(Inherited from _Font)

NameOther NameOther NameOther

Returns or sets the font used for characters with character codes from 128 through 255. Read/write String.

(Inherited from _Font)

NumberForm NumberForm NumberForm

Returns or sets the number form setting for an OpenType font.

(Inherited from _Font)

NumberSpacing NumberSpacing NumberSpacing

Gets or sets the number spacing setting for a font.

(Inherited from _Font)

Outline Outline 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.

(Inherited from _Font)

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

(Inherited from _Font)

Position Position 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.

(Inherited from _Font)

Reflection Reflection Reflection

Gets a ReflectionFormat object that represents the reflection formatting for a shape.

(Inherited from _Font)

Scaling Scaling 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.

(Inherited from _Font)

Shading Shading Shading

Returns a Shading object that refers to the shading formatting for the specified object.

(Inherited from _Font)

Shadow Shadow Shadow

True if the specified font is formatted as shadowed. Can be True, False, or wdUndefined. Read/write Integer.

(Inherited from _Font)

Size Size Size

Returns or sets the font size in points. Read/write Single.

(Inherited from _Font)

SizeBi SizeBi SizeBi

Returns or sets the font size in points. Read/write Single.

(Inherited from _Font)

SmallCaps SmallCaps 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.

(Inherited from _Font)

Spacing Spacing Spacing

Returns or sets the spacing (in points) between characters. Read/write Single.

(Inherited from _Font)

StrikeThrough StrikeThrough 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.

(Inherited from _Font)

StylisticSet StylisticSet StylisticSet

Gets or sets the stylistic set for the specified font.

(Inherited from _Font)

Subscript Subscript 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.

(Inherited from _Font)

Superscript Superscript 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.

(Inherited from _Font)

TextColor TextColor TextColor

Gets a ColorFormat object that represents the color for the specified font.

(Inherited from _Font)

TextShadow TextShadow TextShadow

Gets a ShadowFormat object that specifies the shadow formatting for the specified font.

(Inherited from _Font)

ThreeD ThreeD ThreeD

Gets a ThreeDFormat object that contains 3-D effect formatting properties for the specified font.

(Inherited from _Font)

Underline Underline Underline

Returns or sets the type of underline applied to the font. Read/write WdUnderline.

(Inherited from _Font)

UnderlineColor UnderlineColor UnderlineColor

Returns or sets the 24-bit color of the underline for the specified Font object.

(Inherited from _Font)

Methods

Grow() Grow() 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.

(Inherited from _Font)

Reset() Reset() Reset()

Removes manual character formatting (formatting not applied using a style).

(Inherited from _Font)

SetAsTemplateDefault() SetAsTemplateDefault() 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.

(Inherited from _Font)

Shrink() Shrink() Shrink()

Decreases the font size to the next available size.

(Inherited from _Font)

Applies to