ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasDatasetLayer Class / SelectionCount Property
Example

In This Topic
    SelectionCount Property (LasDatasetLayer)
    In This Topic
    Gets the number of points selected in the layer.
    Syntax
    public int SelectionCount {get;}
    Public ReadOnly Property SelectionCount As Integer
    Example
    Determine if Layer has selection
    // get selection count
    var count = lasDatasetLayer.SelectionCount;
    // does the layer have a selection
    var hasSelection = lasDatasetLayer.HasSelection;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also