_AutoFormatRules.Add(String) Method
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.
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.