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)

public WdShowFilter FormattingShowFilter { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdShowFilter

One of the WdShowFilter values.

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 void DocumentFormattingShowFilter()
    this.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse;	
Return to top