Version

Add Method (ColorCategoryCollection)

Creates a new ColorCategory with the specified string value as its ColorCategory.Name
Syntax
'Declaration
 
Public Function Add( _
   ByVal name As String _
) As ColorCategory
public ColorCategory Add( 
   string name
)

Parameters

name
String that will be used to initialize the ColorCategory.Name property of the new ColorCategory. This value must be unique with regards to the other ColorCategory instances within the collection.

Return Value

Returns the new ColorCategory that was created and added to the collection.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also