DocumentBase.FormattingShowFilter Property

Gets or sets a WdShowFilter constant that represents the styles and formatting displayed in the Styles and Formatting task pane.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property FormattingShowFilter As WdShowFilter
    Get
    Set
public WdShowFilter FormattingShowFilter { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdShowFilter
One of the WdShowFilter values.

Examples

The following code example filters formatting in the Styles and Formatting task pane to show only the formatting that is in use in the document. To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentFormattingShowFilter()
    Me.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse
End Sub 
private void DocumentFormattingShowFilter()
{
    this.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse;  
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace