Public Shared Function SelectSpatialData( _ ByVal mapView As MapView _ ) As SelectionSet
public static SelectionSet SelectSpatialData( MapView mapView )
Parameters
- mapView
Return Value
The set of spatial data as a SelectionSet
Public Shared Function SelectSpatialData( _ ByVal mapView As MapView _ ) As SelectionSet
public static SelectionSet SelectSpatialData( MapView mapView )
| Exception | Description |
|---|---|
| System.ArgumentNullException | Map cannot be null. |
| System.ArgumentException | Map is not a link chart. |
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
await QueuedTask.Run(() =>
{
// display non spatial data
MapView.Active.SetShowNonSpatialData(true);
// select the current set of non spatial data
var selNonSpatial = MapView.Active.SelectNonSpatialData();
// perform some action
// select the current set of spatial data
var selSpatial = MapView.Active.SelectSpatialData();
// perform some other action
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)