ArcObjects Library Reference (Controls)  

IPageLayoutControl3.TrackRectangle Method

Rubber-bands a rectangle on the PageLayoutControl.

ERROR: Syntax information about IPageLayoutControl3.TrackRectangle may not be in D:\ArcGIS\DotNet\ESRI.ArcGIS.Controls.dll

[C++]
HRESULT TrackRectangle(
  IEnvelope** rectangle
);
[C++]

Parameters

rectangle [out, retval]

  rectangle is a parameter of type IEnvelope

Product Availability

Available with ArcGIS Engine.

Description

Use the TrackRectangle method within the IPageLayoutControlEvents::OnMouseDown event to rubberband a user defined rectangle. The IPageLayoutControlEvents::OnMouseMove event will be triggered during the track, but no IPageLayoutControlEvents::OnMouseUp event will occur. The ESC key on the keyboard can be used during the track to cancel the TrackRectangle.

See Also

IPageLayoutControl3 Interface