This document is archived and information here might be outdated.  Recommended version.


ISymbologyStyleClass.SelectItem Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISymbologyStyleClass Interface > ISymbologyStyleClass.SelectItem Method
ArcGIS Developer Help

ISymbologyStyleClass.SelectItem Method

Sets the selected item in the SymbologyStyleClass.

[Visual Basic .NET]
Public Sub SelectItem ( _
    ByVal index As Integer _
)
[C#]
public void SelectItem (
    int index
);
[C++]
HRESULT SelectItem(
  long index
);
[C++]
Parameters
index [in]

index is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

Selects the item at the specified index in the SymbologyStyleClass. An item can also be selected interactively by the end user clicking on an item in the SymbologyControl.

Selecting an item triggers the OnItemSelected event.

Errors Returned

1023 800a03ff: The specified index is out of range

See Also

ISymbologyStyleClass Interface

.NET Samples

Change layer rendering using the SymbologyControl