Creates a new instance of an AlignmentTangentLabel on an alignment line sub-entity with the specified label style in the default layer.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.3.1717.0
Syntax
C#
public static ObjectId Create( AlignmentSubEntityLine subEntityLine, ObjectId labelStyleId )
Visual Basic
Public Shared Function Create ( _ subEntityLine As AlignmentSubEntityLine, _ labelStyleId As ObjectId _ ) As ObjectId
Visual C++
public: static ObjectId Create( AlignmentSubEntityLine^ subEntityLine, ObjectId labelStyleId )
Parameters
- subEntityLine
- Type: Autodesk.Civil.DatabaseServices.AlignmentSubEntityLine
The alignment sub-entity in which the label is located.
- labelStyleId
- Type: ObjectId
The object id of label style for the label.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | Thrown when the labelStyleId is not a valid label style of type: LabelStyleType::AlignmentLine. |