Platform SDK: CDO 1.2.1

Add Method (Patterns Collection)

The Add method creates and returns a new Pattern object in the Patterns collection.

Syntax

Set objPattern = objPatternsColl.Add(varValue, varRenderUsing)

objPattern
On successful return, contains the new Pattern object.
objPatternsColl
Required. The Patterns collection object.
varValue
Required. Variant. Specifies which property values are to be rendered using the new Pattern object.
varRenderUsing
Required. Variant. Specifies how a property is to be rendered using the new Pattern object.

Remarks

The Add method parameters correspond to the Value and RenderUsing properties of the new Pattern object.