ArcObjects Library Reference (Controls)  

ISymbologyStyleClass.AddItem Method

Adds an item to the SymbologyStyleClass.

[Visual Basic .NET]
Public Sub AddItem ( _
    ByVal item As IStyleGalleryItem, _
    [ByVal index As Integer] _
)
[C#]
public void AddItem (
    IStyleGalleryItem item,
    int index
);
[C#]

Optional Values

index   Supply -1 as a default value.
[C++]
HRESULT AddItem(
  IStyleGalleryItem* item,
  long index
);
[C++]

Parameters

item [in]

  item is a parameter of type IStyleGalleryItem

index [in, optional, defaultvalue(-1)]   index is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

Adds the specified item to the SymbologyStyleClass at the specified index. By default the index is -1 and represents the end of the item collection. Specify the item as a ServerStyleGalleryItem.

Errors Returned

1023 800a03ff: The specified index is out of range
1078 800a0436: The specified item is not recognized as a valid symbology
1079 800a0436: The style class of the symbology supplied does not match that of the SymbologyStyleClass

See Also

ISymbologyStyleClass Interface