_AutoFormatRules.Add Method

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

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

Syntax

'Declaration
<DispIdAttribute()> _
Function Add ( _
    Name As String _
) As AutoFormatRule
'Usage
Dim instance As _AutoFormatRules
Dim Name As String
Dim returnValue As AutoFormatRule

returnValue = instance.Add(Name)
[DispIdAttribute()]
AutoFormatRule Add(
    string Name
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Outlook.AutoFormatRule
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.

See Also

Reference

_AutoFormatRules Interface

_AutoFormatRules Members

Microsoft.Office.Interop.Outlook Namespace