AutoFormatRule Interface

Represents a formatting rule used by a object to determine how to format Microsoft Outlook items displayed within that view.

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

Syntax

'Declaration
<GuidAttribute("00063093-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(AutoFormatRuleClass))> _
Public Interface AutoFormatRule _
    Inherits _AutoFormatRule
'Usage
Dim instance As AutoFormatRule
[GuidAttribute("00063093-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(AutoFormatRuleClass))]
public interface AutoFormatRule : _AutoFormatRule

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _AutoFormatRule.

Use the Add method or the Insert method of the AutoFormatRules collection to create a new formatting rule for the following objects:

Outlook provides a set of built-in formatting rules that can be disabled but cannot be removed or reordered. Custom formatting rules, defined either programmatically or by user action, cannot be moved above or between built-in formatting rules. Use the Standard property to determine whether a formatting rule is built-in or custom.

Formatting rules are checked and applied against each Outlook item, in the order in which they are contained within the AutoFormatRules collection. Use the Enabled property to enable or disable a formatting rule, the Filter property to define the conditions an Outlook item must meet to be formatted by the formatting rule, and the Font property to specify the format to be applied by the formatting rule.

See Also

Reference

AutoFormatRule Members

Microsoft.Office.Interop.Outlook Namespace