ArcObjects Library Reference (Carto)  

IGraphicsContainer.AddElement Method

Add a new graphic element to the layer.

[Visual Basic .NET]
Public Sub AddElement ( _
    ByVal Element As IElement, _
    ByVal zorder As Integer _
)
[C#]
public void AddElement (
    IElement Element,
    int zorder
);
[C++]
HRESULT AddElement(
  IElement* Element,
  long zorder
);
[C++]

Parameters

Element [in]

  Element is a parameter of type IElement

zorder [in]   zorder is a parameter of type long

Product Availability

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

Description

This method adds the input element the graphics container referenced.  The parameter zorder is currently not utilized by all of the IGraphicsContainer implementations and is typically set to 0 when calling this method.

See Also

IGraphicsContainer Interface