ArcGIS Pro 2.7 API Reference Guide
SelectItemAsync Method

ArcGIS.Desktop.Core Namespace > IProjectWindow Interface : SelectItemAsync Method
The Item to select or unselect
Select or unselect the item
True to expand the parent container to show the selection
Optionally specify the parent container you want to find the Item in
Select an Item
Syntax
Task SelectItemAsync( 
   Item Item,
   bool select,
   bool expand,
   Item container
)
Function SelectItemAsync( _
   ByVal Item As Item, _
   ByVal select As Boolean, _
   ByVal expand As Boolean, _
   ByVal container As Item _
) As Task

Parameters

Item
The Item to select or unselect
select
Select or unselect the item
expand
True to expand the parent container to show the selection
container
Optionally specify the parent container you want to find the Item in
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IProjectWindow Interface
IProjectWindow Members