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

In This Topic
    HasSelection Property
    In This Topic
    Gets whether the layer has a selection.
    Syntax
    public bool HasSelection {get;}
    Public ReadOnly Property HasSelection As Boolean
    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