_AutoFormatRules.Add(String) Method

Definition

Creates a new AutoFormatRule object and appends it to the AutoFormatRules collection.

public:
 Microsoft::Office::Interop::Outlook::AutoFormatRule ^ Add(System::String ^ Name);
public Microsoft.Office.Interop.Outlook.AutoFormatRule Add (string Name);
Public Function Add (Name As String) As AutoFormatRule

Parameters

Name
String

The name of the new formatting rule.

Returns

An AutoFormatRule object that represents the new formatting rule.

Remarks

Duplicate names for AutoFormatRule objects are allowed in the AutoFormatRules collection. A maximum of 25 custom formatting rules can be added to the collection. Built-in formatting rules are not counted against that limit.

Applies to