Share

LabelStyle.AddTextForEachComponent Method

Add TextForEach component into the label style.



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

Syntax

C#

public ObjectId AddTextForEachComponent(
	string name,
	TextForEachComponentSelectedType selectedType
)

VB

Public Function AddTextForEachComponent ( 
	name As String,
	selectedType As TextForEachComponentSelectedType
) As ObjectId

C++

public:
ObjectId AddTextForEachComponent(
	String^ name, 
	TextForEachComponentSelectedType selectedType
)

Parameters

name  String
The name of component.
selectedType  TextForEachComponentSelectedType
The selected type of text for each component.

Return Value

ObjectId

Exceptions

ExceptionCondition
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

Reference

Was this information helpful?