Style Members (Word)

Represents a single built-in or user-defined style. The Style object includes style attributes (such as font, font style, and paragraph spacing) as properties of the Style object. The Style object is a member of the Styles collection. The Styles collection includes all the styles in the specified document.

Methods

Name

Description

Delete

Deletes the specified style.

LinkToListTemplate

Links the specified style to a list template so that the style's formatting can be applied to lists.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

AutomaticallyUpdate

True if the style is automatically redefined based on the selection. Read/write Boolean.

BaseStyle

Returns or sets an existing style on which you can base the formatting of another style. Read/write Variant.

Borders

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

BuiltIn

True if the specified object is one of the built-in styles or caption labels in Word. Read-only Boolean.

Creator

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

Description

Returns the description of the specified style. Read-only String.

Font

Returns or sets a Font object that represents the character formatting of the specified style. Read/write Font.

Frame

Returns a Frame object that represents the frame formatting for the specified style. Read-only.

InUse

True if the specified style is a built-in style that has been modified or applied in the document or a new style that has been created in the document. Read-only Boolean.

LanguageID

Returns or sets a WdLanguageID constant that represents the language for the specified range. Read/write.

LanguageIDFarEast

Returns or sets an East Asian language for the specified object. Read/write WdLanguageID.

Linked

Returns or sets a Boolean that represents whether a style is a linked style that can be used for both paragraph and character formatting. Read-only.

LinkStyle

Sets or returns a Variant that represents a link between a paragraph and a character style. Read/write.

ListLevelNumber

Returns the list level for the specified style. Read-only Long.

ListTemplate

Returns a ListTemplate object that represents the list formatting for the specified Style object.

Locked

True if a style cannot be changed or edited. Read/write Boolean.

NameLocal

Returns the name of a built-in style in the language of the user. Read/write String.

NextParagraphStyle

Returns or sets the style to be applied automatically to a new paragraph that is inserted after a paragraph formatted with the specified style. Read/write Variant.

NoProofing

True if the spelling and grammar checker ignores text formatted with this style. Read/write Long.

NoSpaceBetweenParagraphsOfSameStyle

True for Microsoft Word to remove spacing between paragraphs that are formatted using the same style. Read/write Boolean.

ParagraphFormat

Returns or sets a ParagraphFormat object that represents the paragraph settings for the specified style. Read/write.

Parent

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

Priority

Returns or sets a Long that represents the priority for sorting styles in the Styles task pane. Read/write.

QuickStyle

Returns or sets a Boolean that represents whether the style corresponds to an available quick style. Read/write.

Shading

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

Table

Returns a TableStyle object representing properties that can be applied to a table using a table style.

Type

Returns the style type. Read-only WdStyleType.

UnhideWhenUsed

True if the specified style is made visible as a recommended style in the Styles and in theStyles task pane in Word 2010 after it is used in the document. Read/write.

Visibility

True if the specified style is visible as a recommended style in the Styles gallery and in theStyles task pane. Read/write.