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


IGraphicsContainer.DeleteElement Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IGraphicsContainer.DeleteElement Method

Delete the given element.

[Visual Basic .NET]
Public Sub DeleteElement ( _
    ByVal Element As IElement _
)
[C#]
public void DeleteElement (
    IElement Element
);
[C++]
HRESULT DeleteElement(
  IElement* Element
);
[C++]

Parameters Element [in]
Element is a parameter of type IElement

Product Availability

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

See Also

IGraphicsContainer Interface

.NET Samples

Move a graphic along a path in ArcMap (Code Files: MapGraphicKeyframe) | Update a legend format with SymbologyControl area and line patches (Code Files: AreaLinePatches)