Compartilhar via


View.ShowHighlight Property

Word Developer Reference

True if highlight formatting is displayed and printed with a document. Read/write Boolean.

Syntax

expression.ShowHighlight

expression   An expression that returns a View object.

Example

This example toggles the display of highlighting in the active document.

Visual Basic for Applications
  ActiveDocument.ActiveWindow.View.ShowHighlight = _
    Not ActiveDocument.ActiveWindow.View.ShowHighlight

This example prints the active document without highlight formatting.

Visual Basic for Applications
  With ActiveDocument
    .ActiveWindow.View.ShowHighlight = False
    .PrintOut
End With

See Also