|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGroupElement3 Interface > IGroupElement3.ReplaceElement Method (ArcObjects .NET 10.5 SDK) | 
Replace an existing element in the group.
[Visual Basic .NET] Public Sub ReplaceElement ( _ ByVal existingElement As IElement, _ ByVal newElement As IElement _ )
[C#] public void ReplaceElement ( IElement existingElement, IElement newElement );
[C++]
HRESULT ReplaceElement(
  IElement* existingElement,
  IElement* newElement
);
[C++]
Parameters existingElement [in]
existingElement is a parameter of type IElement newElement [in]
newElement is a parameter of type IElement