Creates a new instance of an AlignmentTangentLabel on an alignment line entity with the specified label style in the default layer.

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

Syntax

C#
public static ObjectId Create(
	AlignmentLine entityLine,
	ObjectId labelStyleId
)
Visual Basic
Public Shared Function Create ( _
	entityLine As AlignmentLine, _
	labelStyleId As ObjectId _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	AlignmentLine^ entityLine, 
	ObjectId labelStyleId
)

Parameters

entityLine
Type: Autodesk.Civil.DatabaseServices..::..AlignmentLine
The alignment entity in which the label is located.
labelStyleId
Type: ObjectId
The object id of label style for the label.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the labelStyleId is not a valid label style of type: LabelStyleType::AlignmentLine.

See Also