Creates a label set item with the given lable style type and name, adds it to the collection.
Namespace: Autodesk.Civil.DatabaseServices.StylesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
| C# |
|---|
public void Add( LabelStyleType labelStyleType, string labelStyleName ) |
| Visual Basic |
|---|
Public Sub Add ( _ labelStyleType As LabelStyleType, _ labelStyleName As String _ ) |
| Visual C++ |
|---|
public: void Add( LabelStyleType labelStyleType, String^ labelStyleName ) |
Parameters
- labelStyleType
- Type: Autodesk.Civil.DatabaseServices.Styles..::..LabelStyleType
The type of label style.
- labelStyleName
- Type: System..::..String
The name of label style.
Remarks
- Use the alignment related label style types in the AlignmentLabelSetStyle class.
- Use the profile related label style types except ProfileCurve 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.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | Thrown when the type of input label style type is invalid. |