This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFDOGraphicsContainer Interface > IFDOGraphicsContainer.AddElement Method (ArcObjects .NET 10.5 SDK) |
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