ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureLayer Class / AddLabelClass Method
Name of the label class to add to the layer's label class collection.

In This Topic
    AddLabelClass Method
    In This Topic
    Adds a label class to the layer's label class collection. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void AddLabelClass( 
       string labelClassName
    )
    Public Sub AddLabelClass( _
       ByVal labelClassName As String _
    ) 

    Parameters

    labelClassName
    Name of the label class to add to the layer's label class collection.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Empty or null labelClassNames are ignored. If the labelClassName already exists it is ignored.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also