Compartilhar via


Style.BuiltIn Property

Word Developer Reference

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

Syntax

expression.BuiltIn

expression   A variable that represents a Style object.

Remarks

You can specify built-in styles across all languages by using the WdBuiltinStyle constants or within a language by using the style name for the language version of Word. For example, if you specify U.S. English in your Microsoft Office language settings, the following statements are equivalent:

Visual Basic for Applications
  ActiveDocument.Styles(wdStyleHeading1)
ActiveDocument.Styles("Heading 1")

Example

This example checks all the styles in the active document. When it finds a style that isn't built in, it displays the name of the style.

Visual Basic for Applications
  Dim styleLoop As Style

For Each styleLoop in ActiveDocument.Styles If styleLoop.BuiltIn = False Then Msgbox styleLoop.NameLocal End If Next styleLoop

See Also