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


IActiveView.ExportFrame Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IActiveView.ExportFrame Property

The device rectangle to export.

[Visual Basic .NET]
Public ReadOnly Property ExportFrame As tagRECT
[C#]
public tagRECT ExportFrame {get;}
[C++]
HRESULT get_ExportFrame(
  tagRECT* ExportFrame
);
[C++]

Parameters ExportFrame [out, retval]
ExportFrame is a parameter of type tagRECT

Product Availability

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

Remarks

Returns the area of the view to be exported. 

For Maps, this is always the area corresponding to the constrained bounds (IDisplayTransformation::ContstrainedBounds), i.e., the visible bounds intersected with the full bounds.  The coordinates are automatically converted, using IDisplayTransformation::TransformRect, from world units to device units.

For PageLayout, this is always the height and width of the page in device units (pixels) when the layout is zoomed to 100%.  Because these values are independent of the layout's current zoom level and always correspond to the page instead of the full client area of the application, they are ideal for use when exporting a map to a graphics file.  Assign the values of the ExportFrame property to the Export object's PixelBounds property.

See Also

IActiveView Interface

.NET Snippets

Create JPEG (hi-resolution) from ActiveView | Create JPEG from ActiveView