Partager via


_AutoFormatRule.Filter Property

Returns or sets a String (string in C#) value that represents the filter for a custom formatting rule. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Filter As String
    Get
    Set
'Usage
Dim instance As _AutoFormatRule
Dim value As String

value = instance.Filter

instance.Filter = value
[DispIdAttribute()]
string Filter { get; set; }

Property Value

Type: System.String

Remarks

The value of this property is a DAV Searching and Locating (DASL) string that represents the current filter for the custom formatting rule. For more information about using DASL to filter items formatted by the formatting rule, see Filtering Items. Setting this property to an empty string applies the custom formatting rule to all items displayed by the view.

Note

This property returns an empty string for a standard formatting rule (an AutoFormatRule object with a Standard property value set to True). An error occurs if you attempt to assign a value to this property for a standard formatting rule.

See Also

Reference

_AutoFormatRule Interface

_AutoFormatRule Members

Microsoft.Office.Interop.Outlook Namespace