The SetScale method scales the map.
Syntax
object.SetScale( Width, Height, XYRelation, bFitPage )
Parameter |
Type |
Description |
Width |
Double |
required; in page units |
Height |
Double |
required; in page units |
XYRelation |
required; XY scaling relationship |
|
bFitPage |
Boolean |
required; true to fit map to page |
Remarks
If the XYRelation is mvXY1To1 or mvXYCurrentRelationship, then Height is ignored.
If bFitPage is true, the width and height are ignored.
Example
This example sets the map scale using an XY relationship that is not 1 to 1.
Plot.SetScale( Width:=8, Height:=5.5, XYRelation:=mvXYNot1To1, bFitPage:=False )
Used by: PlotDocument object