ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureLayer Class / RemoveLabelClass(String) Method
Name of the label class to remove from the layer's label class collection.

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

    Parameters

    labelClassName
    Name of the label class to remove from 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 does not exist it is ignored.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also