Compartilhar via


TextInput.Format Property

Word Developer Reference

Returns the text formatting for the specified text box. Read-only String.

Syntax

expression.Format

expression   Required. A variable that represents a TextInput object.

Example

This example displays the text formatting in the first field of the active document.

Visual Basic for Applications
  If ActiveDocument.FormFields(1).Type = wdFieldFormTextInput Then
    MsgBox ActiveDocument.FormFields(1).TextInput.Format
Else
    MsgBox "First field is not a text form field"
End If

See Also