ArcObjects Library Reference (Controls)  

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 (Code Files: SymbolForm) | Implementing a property page for an ArcGIS Engine application (Code Files: SymbolSelectorPropPage) |