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


IElement.Activate Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IElement.Activate Method

Prepare to display graphic on screen.

[Visual Basic .NET]
Public Sub Activate ( _
    ByVal Display As IDisplay _
)
[C#]
public void Activate (
    IDisplay Display
);
[C++]
HRESULT Activate(
  IDisplay* Display
);
[C++]

Parameters Display [in]
Display is a parameter of type IDisplay*

Product Availability

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

Remarks

Activate prepares the screen display for output and orients the scale of the element to the specified display.  Activate should be executed with the current display before execute the IElement::Draw method.

 

See Also

IElement Interface

.NET Snippets

Add North Arrow | Add Scale Bar

.NET Samples

Move a graphic along a path in ArcMap (Code Files: MapGraphicKeyframe)

.NET Related Topics

Working with map surrounds