Add a valid component into the label style.

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public ObjectId AddComponent(
	string name,
	LabelStyleComponentType type
)
Visual Basic
Public Function AddComponent ( _
	name As String, _
	type As LabelStyleComponentType _
) As ObjectId
Visual C++
public:
ObjectId AddComponent(
	String^ name, 
	LabelStyleComponentType type
)

Parameters

name
Type: System..::..String
The name of component.
type
Type: Autodesk.Civil.DatabaseServices.Styles..::..LabelStyleComponentType
The type of component.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The type is ReferenceText or TextForEach;
  2. The type is not supported by this label style;
  3. The name is null, or duplicate, or its length is not in the interval 1 - 128.

See Also