The SetScale2 method scales the map.
Syntax
object.SetScale2( ScaleMethod, XYRelation, Width, Height, RFScale)
Parameter |
Type |
Description |
ScaleMethod |
optional; scaling method, default is mvScaleMethodXY |
|
XYRelation |
optional; XY scaling relationship, default is mvXYCurrentRelationship |
|
Width |
Double |
optional; in page units |
Height |
Double |
optional; in page units |
RFScale |
Double |
optional; representative fraction scale |
Remarks
If the XYRelation is mvXY1To1 or mvXYCurrentRelationship, then Height is ignored.
Example
'SetScale2
'Create a hatch map and assign it to the variable "HatchMap"
Set HatchMap = Plot.CreateHatchMap(BoundaryFileName:=mvApp.ModuleFolder + "\Samples\CO2010.gsb", _
DataFileName:=mvApp.ModuleFolder + "\Samples\CO2010.dat", _
PIDCol:=1, VarCol:=7)
'Scale the document to a 5x5 space
Plot.SetScale2(Width:=5, Height:=5)
'Scale the document to fit everything on the page
Plot.SetScale2(ScaleMethod:=mvScaleMethodPage)
Used by: PlotDocument object