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

ISymbolCollection2.AddSymbol Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > ISymbolCollection2 Interface > ISymbolCollection2.AddSymbol Method
ArcGIS Developer Help

ISymbolCollection2.AddSymbol Method

Adds a symbol to the collection. The ID will be set by the collection.

[Visual Basic .NET]
Public Sub AddSymbol ( _
    ByVal Symbol As ISymbol, _
    ByVal Name As String, _
    ByRef symbolID As ISymbolIdentifier2 _
public void AddSymbol (
    ISymbol Symbol,
    string Name,
    ref ISymbolIdentifier2 symbolID
HRESULT AddSymbol(
  ISymbol* Symbol,
  BSTR Name,
  ISymbolIdentifier2** symbolID
Symbol [in]

Symbol is a parameter of type ISymbol* Name [in]
Name is a parameter of type BSTR symbolID [out]
symbolID is a parameter of type ISymbolIdentifier2**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ISymbolCollection2 Interface