Поделиться через


Font Members (Word)

Contains font attributes (such as font name, font size and color) for an object.

Methods

Name

Description

Grow

Increases the font size to the next available size.

Reset

Removes manual character formatting (formatting not applied using a style). For example, if you manually format a word as bold and the underlying style is plain text (not bold), the Reset method removes the bold format.

SetAsTemplateDefault

Sets the specified font formatting as the default for the active document and all new documents based on the active template.

Shrink

Decreases the font size to the next available size.

Properties

Name

Description

AllCaps

True if the font is formatted as all capital letters. Read/write Long.

Animation

Returns or sets the type of animation applied to the font. Read/write WdAnimation.

Application

Returns an Application object that represents the Microsoft Word application.

Bold

True if the font is formatted as bold. Read/write Long.

BoldBi

True if the font is formatted as bold. Read/write Long.

Borders

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

ColorIndex

Returns or sets a WdColorIndex constant that represents the color for the specified font. Read/write .

ColorIndexBi

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

ContextualAlternates

Specifies whether or not contextual alternates are enabled for the specified font. Read/write Long.

Creator

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

DiacriticColor

Returns or sets the 24-bit color to be used for diacritics for the specified Font object. Read/write.

DisableCharacterSpaceGrid

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

DoubleStrikeThrough

True if the specified font is formatted as double strikethrough text. .

Duplicate

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

Emboss

True if the specified font is formatted as embossed. Read/write Long.

EmphasisMark

Returns or sets a WdEmphasisMark constnat that represents the emphasis mark for a character or designated character string. Read/write.

Engrave

True if the font is formatted as engraved. Read/write Long.

Fill

Returns a FillFormat object that contains fill formatting properties for the font used by the specified range of text. Read-only.

Glow

Returns a GlowFormat object that represents the glow formatting for the font used by the specified range of text. Read-only.

Hidden

True if the font is formatted as hidden text. Read/write Long.

Italic

True if the font or range is formatted as italic. Read/write Long.

ItalicBi

True if the font or range is formatted as italic. Read/write Long.

Kerning

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

Ligatures

Returns or sets the ligatures setting for the specified Font object. Read/write WdLigatures.

Line

Returns a LineFormat object that specifies the formatting for a line. Read/write.

Name

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

NameAscii

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

NameBi

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

NameFarEast

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

NameOther

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

NumberForm

Returns or sets the number form setting for an OpenType font. Read/write WdNumberForm.

NumberSpacing

Returns or sets the number spacing setting for a font. Read/write WdNumberSpacing.

Outline

True if the font is formatted as outline. Read/write Long.

Parent

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

Position

Returns or sets the position of text (in points) relative to the base line. Read/write Long.

Reflection

Returns a ReflectionFormat object that represents the reflection formatting for a shape. Read-only.

Scaling

Returns or sets the scaling percentage applied to the font. Read/write Long.

Shading

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

Shadow

True if the specified font is formatted as shadowed. Read/write Long.

Size

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

SizeBi

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

SmallCaps

True if the font is formatted as small capital letters. Read/write Long.

Spacing

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

StrikeThrough

True if the font is formatted as strikethrough text. Read/write Long.

StylisticSet

Specifies the stylistic set for the specified font. Read/write WdStylisticSet.

Subscript

True if the font is formatted as subscript. Read/write Long.

Superscript

True if the font is formatted as superscript. Read/write Long.

TextColor

Returns a ColorFormat object that represents the color for the specified font. Read-only.

TextShadow

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

ThreeD

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

Underline

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

UnderlineColor

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