Creates a label set item with the given object id, adds it to the collection.
Namespace: Autodesk.Civil.DatabaseServices.StylesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.1516
Syntax
C#
public void Add(
ObjectId labelStyleId
)
VB
Public Sub Add (
labelStyleId As ObjectId
)
C++
public:
void Add(
ObjectId labelStyleId
)
Parameters
- labelStyleId ObjectId
- The object id of label style.
Exceptions
| Exception | Condition |
|---|
| ArgumentException |
Thrown when:
- the type of input labelStyleId is ProfileCurve.
- the type of input label style type is invalid.
|
Remarks
- Use the alignment related label style types in the AlignmentLabelSetStyle class.
- Use the profile related label style types in the ProfileLabelSetStyle class.
- Use the section related label style types in the SectionLabelSetStyle class.
- Cannot be used with these label style types: Autodesk.Civil.DatabaseServices.LabelType.AlignmentMinorStation, ProfileMinorStation, and SectionMinorOffset.
See Also
Reference