Share

AttributeSets.Add Method

Parent Object: AttributeSets

Description

Method that creates a new for the object the AttributeSets collection was obtained from. The created AttributeSet object is returned.

Syntax

AttributeSets.Add( AttributeSetName As String, [CopyWithOwner] As Boolean ) As AttributeSet

Parameters

Name Type Description
AttributeSetName String Input String value that specifies the name of the attribute set. The name must be unique with respect to the other attribute sets attached to this object. If it is not unique, an error will occur.
CopyWithOwner Boolean Property that specifies whether the attribute set should be copied with its owner when the object it is associated with is copied or split. If True, the attribute set is copied.

This is an optional argument whose default value is False.

Version

Introduced in version 5

Was this information helpful?