Add TextForEach component into the label style.

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

Syntax

C#
public ObjectId AddTextForEachComponent(
	string name,
	TextForEachComponentSelectedType selectedType
)
Visual Basic
Public Function AddTextForEachComponent ( _
	name As String, _
	selectedType As TextForEachComponentSelectedType _
) As ObjectId
Visual C++
public:
ObjectId AddTextForEachComponent(
	String^ name, 
	TextForEachComponentSelectedType selectedType
)

Parameters

name
Type: System..::..String
The name of component.
selectedType
Type: Autodesk.Civil.DatabaseServices.Styles..::..TextForEachComponentSelectedType
The selected type of text for each component.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The TextForEach type is not supported by this label style.
  2. The name is null, or duplicate, or its length is not in the interval 1 - 128.
  3. The type of LabelStyle is StructureLabelStyle, but the selectedType is IntersectionAllAlignment.
  4. The type of LabelStyle is IntersectionLocationLabels, but the selectedType is not IntersectionAllAlignment.

See Also