AutoFormatRule Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a formatting rule used by a object to determine how to format Microsoft Outlook items displayed within that view.
public interface class AutoFormatRule : Microsoft::Office::Interop::Outlook::_AutoFormatRule
[System.Runtime.InteropServices.Guid("00063093-0000-0000-C000-000000000046")]
public interface AutoFormatRule : Microsoft.Office.Interop.Outlook._AutoFormatRule
Public Interface AutoFormatRule
Implements _AutoFormatRule
- Derived
- Attributes
- Implements
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(String) method or the Insert(String, Object) 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.
Properties
Application |
Returns an Application object that represents the parent Outlook application for the object. Read-only. (Inherited from _AutoFormatRule) |
Class |
Returns an OlObjectClass constant indicating the object's class. Read-only. (Inherited from _AutoFormatRule) |
Enabled |
Returns or sets a Boolean (bool in C#) value that indicates whether the formatting rule represented by the AutoFormatRule object is enabled. Read/write. (Inherited from _AutoFormatRule) |
Filter |
Returns or sets a String (string in C#) value that represents the filter for a custom formatting rule. Read/write. (Inherited from _AutoFormatRule) |
Font |
Returns a ViewFont object that represents the font used to display Outlook items that satisfy the conditions for the formatting rule in the view. Read-only. (Inherited from _AutoFormatRule) |
Name |
Returns or sets a String (string in C#) value that represents the display name for the object. Read/write. (Inherited from _AutoFormatRule) |
Parent |
Returns the parent Object of the specified object. Read-only. (Inherited from _AutoFormatRule) |
Session |
Returns the NameSpace object for the current session. Read-only. (Inherited from _AutoFormatRule) |
Standard |
Returns a Boolean (bool in C#) value that indicates whether the AutoFormatRule object represents a built-in Outlook formatting rule. Read-only. (Inherited from _AutoFormatRule) |