Creates a label set item with the given object id, adds it to the collection.

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

Syntax

C#
public void Add(
	ObjectId labelStyleId
)
Visual Basic
Public Sub Add ( _
	labelStyleId As ObjectId _
)
Visual C++
public:
void Add(
	ObjectId labelStyleId
)

Parameters

labelStyleId
Type: ObjectId
The object id of label style.

Remarks

  1. Use the alignment related label style types in the AlignmentLabelSetStyle class.
  2. Use the profile related label style types in the ProfileLabelSetStyle class.
  3. Use the section related label style types in the SectionLabelSetStyle class.
  4. Cannot be used with these label style types: Autodesk.Civil.DatabaseServices.LabelType.AlignmentMinorStation, ProfileMinorStation, and SectionMinorOffset.

Remarks

User can use the methods AddSagCurve/AddCrestCurve in the ProfileLabelSetStyle to add a profile curve label style.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. the type of input labelStyleId is ProfileCurve.
  2. the type of input label style type is invalid.

See Also