Document.FormattingShowFilter Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property FormattingShowFilter As WdShowFilter
'Usage
Dim instance As Document
Dim value As WdShowFilter
value = instance.FormattingShowFilter
instance.FormattingShowFilter = value
[BrowsableAttribute(false)]
public WdShowFilter FormattingShowFilter { get; set; }
[BrowsableAttribute(false)]
public:
property WdShowFilter FormattingShowFilter {
WdShowFilter get ();
void set (WdShowFilter value);
}
public function get FormattingShowFilter () : WdShowFilter
public function set FormattingShowFilter (value : WdShowFilter)
Property Value
Type: 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.
This example is for a document-level customization.
Private Sub DocumentFormattingShowFilter()
Me.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse
End Sub
private void DocumentFormattingShowFilter()
{
this.FormattingShowFilter = Word.WdShowFilter.wdShowFilterFormattingInUse;
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.