ArcGIS Pro 3.7 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 ReadOnly Property HasSelection As Boolean
    public bool HasSelection {get;}
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.6 or higher.
    See Also