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


IMap.GetPageSize Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMap.GetPageSize Method

Gets the page size for the map.

[Visual Basic .NET]
Public Sub GetPageSize ( _
    ByRef widthInches As Double, _
    ByRef heightInches As Double _
)
[C#]
public void GetPageSize (
    ref double widthInches,
    ref double heightInches
);
[C++]
HRESULT GetPageSize(
  double* widthInches,
  double* heightInches
);
[C++]

Parameters widthInches [out] widthInches is a parameter of type double heightInches [out] heightInches is a parameter of type double

Product Availability

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

Remarks

GetPageSize returns the width and height of the Map in inches.
In the ArcMap application, the Map width and height are set to 0 inches by 0 inches in data view; in layout view, the Map's size is by default set to fit within the page size (IPage::QuerySize).
Developers creating their own application may use SetPageSize to set the size of the Map in their own page space.

See Also

IMap Interface