편집

다음을 통해 공유


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
type Font = interface
    interface _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

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

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

(Inherited from _Font)
Application

Returns a Application object that represents the Microsoft Word application.

(Inherited from _Font)
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

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

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

(Inherited from _Font)
Color

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

(Inherited from _Font)
ColorIndex

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

(Inherited from _Font)
ColorIndexBi

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

(Inherited from _Font)
ContextualAlternates

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

(Inherited from _Font)
Creator

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

(Inherited from _Font)
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

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

(Inherited from _Font)
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

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

(Inherited from _Font)
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

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

(Inherited from _Font)
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

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

(Inherited from _Font)
Glow

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

(Inherited from _Font)
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

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

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

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

(Inherited from _Font)
Ligatures

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

(Inherited from _Font)
Line

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

(Inherited from _Font)
Name

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

(Inherited from _Font)
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

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

(Inherited from _Font)
NameFarEast

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

(Inherited from _Font)
NameOther

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

(Inherited from _Font)
NumberForm

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

(Inherited from _Font)
NumberSpacing

Gets or sets the number spacing setting for a font.

(Inherited from _Font)
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

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

(Inherited from _Font)
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

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

(Inherited from _Font)
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

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

(Inherited from _Font)
Shadow

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

(Inherited from _Font)
Size

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

(Inherited from _Font)
SizeBi

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

(Inherited from _Font)
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

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

(Inherited from _Font)
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

Gets or sets the stylistic set for the specified font.

(Inherited from _Font)
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

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

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

(Inherited from _Font)
TextShadow

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

(Inherited from _Font)
ThreeD

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

(Inherited from _Font)
Underline

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

(Inherited from _Font)
UnderlineColor

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

(Inherited from _Font)

Methods

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

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

(Inherited from _Font)
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()

Decreases the font size to the next available size.

(Inherited from _Font)

Applies to