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


IFDOGraphicsContainer.AddElement Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IFDOGraphicsContainer.AddElement Method

Add a new graphic element to the layer.

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

Parameters Element [in]
Element is a parameter of type IElement zorder [in] zorder is a parameter of type long newAnnotationFeature [out]
newAnnotationFeature is a parameter of type IAnnotationFeature

Product Availability

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

See Also

IFDOGraphicsContainer Interface