ArcObjects Library Reference  (Carto)    

IMap.GetPageSize Method

Gets the page size for the map.

[Visual Basic 6.0]
Sub GetPageSize(
    widthInches As Double, _
    heightInches As Double _
)
[Visual Basic .NET]
Public Sub GetPageSize ( _
    ByRef widthInches As Double, _
    ByRef heightInches As Double _
)
[C#]
public void GetPageSize (
    ref double widthInches,
    ref double heightInches
);
[Java]
public void getPageSize (
    double widthInches,
    double heightInches
)
throws
    IOException,
    AutomationException
[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

 


Feedback Send feedback on this page