Share

BaseLabelSetStyle.Add(LabelStyleType, String) Method

Creates a label set item with the given lable style type and name, adds it to the collection.



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

Syntax

C#

public void Add(
	LabelStyleType labelStyleType,
	string labelStyleName
)

VB

Public Sub Add ( 
	labelStyleType As LabelStyleType,
	labelStyleName As String
)

C++

public:
void Add(
	LabelStyleType labelStyleType, 
	String^ labelStyleName
)

Parameters

labelStyleType  LabelStyleType
The type of label style.
labelStyleName  String
The name of label style.

Exceptions

ExceptionCondition
ArgumentException Thrown when the type of input label style type is invalid.

Remarks

  1. Use the alignment related label style types in the AlignmentLabelSetStyle class.
  2. Use the profile related label style types except ProfileCurve 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.

See Also

Reference

Was this information helpful?