Share

LabelStyle.AddReferenceTextComponent Method

Add ReferenceText component into the label style.



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

Syntax

C#

public ObjectId AddReferenceTextComponent(
	string name,
	ReferenceTextComponentSelectedType selectedType
)

VB

Public Function AddReferenceTextComponent ( 
	name As String,
	selectedType As ReferenceTextComponentSelectedType
) As ObjectId

C++

public:
ObjectId AddReferenceTextComponent(
	String^ name, 
	ReferenceTextComponentSelectedType selectedType
)

Parameters

name  String
The name of component.
selectedType  ReferenceTextComponentSelectedType
The selected type of reference text component.

Return Value

ObjectId

Exceptions

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

See Also

Reference

Was this information helpful?