AddReferenceTextComponent Method

Add ReferenceText component into the label style.

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

Syntax

C#

public ObjectId AddReferenceTextComponent(
	string name,
	ReferenceTextComponentSelectedType selectedType
)

Visual Basic

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

Visual C++

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

Parameters

name
Type: System.String
The name of component.
selectedType
Type: Autodesk.Civil.DatabaseServices.Styles.ReferenceTextComponentSelectedType
The selected type of reference text component.

Exceptions

ExceptionCondition
System.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