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


IMap.SetPageSize Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.SetPageSize Method
ArcGIS Developer Help

IMap.SetPageSize Method

Sets the page size for the map (optional).

[Visual Basic .NET]
Public Sub SetPageSize ( _
    ByVal widthInches As Double, _
    ByVal heightInches As Double _
)
[C#]
public void SetPageSize (
    double widthInches,
    double heightInches
);
[C++]
HRESULT SetPageSize(
  double widthInches,
  double heightInches
);
[C++]
Parameters
widthInches [in]

widthInches is a parameter of type double heightInches [in]
heightInches is a parameter of type double

Product Availability

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

Remarks

SetPageSize sets 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