Share via


DocumentBase.FormattingShowFilter Property

Definition

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

public:
 property Microsoft::Office::Interop::Word::WdShowFilter FormattingShowFilter { Microsoft::Office::Interop::Word::WdShowFilter get(); void set(Microsoft::Office::Interop::Word::WdShowFilter value); };
public Microsoft.Office.Interop.Word.WdShowFilter FormattingShowFilter { get; set; }
member this.FormattingShowFilter : Microsoft.Office.Interop.Word.WdShowFilter with get, set
Public Property FormattingShowFilter As WdShowFilter

Property Value

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 void DocumentFormattingShowFilter()
{
    this.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse;	
}
Private Sub DocumentFormattingShowFilter()
    Me.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse
End Sub 

Applies to