LabelStyleAddComponent Method

Add a valid component into the label style.

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public ObjectId AddComponent(
	string name,
	LabelStyleComponentType type
)

Parameters

name  String
The name of component.
type  LabelStyleComponentType
The type of component.

Return Value

ObjectId
Exceptions
ExceptionCondition
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