SetLabelPosition
SetLabelPosition method specifies the positioning for the X or Y graticule labels.
Syntax
object.SetLabelPosition( Type, Location, Orientation, PlaceInside, Offset )
Parameter |
Type |
Required/ Optional |
Default |
Description |
Type |
Required |
This specifies whether the label position is being set for the X or Y labels. |
||
Location |
Optional |
srfGraticuleLabelLocationBottomAndTop |
This specifies the label location relative to the graticule. |
|
Orientation |
Optional |
srfGraticuleLabelOrientationHorizontal |
This specifies the label orientation. |
|
PlaceInside |
Boolean |
Optional |
True |
This specifies if the labels should be placed inside or outside of the graticule. True places labels inside. |
Offset |
Double |
Optional |
0 |
This specifies the offset into or away from the graticule edge or tick mark edge in page units. |
Remarks
The srfGraticuleLabelLocationTop, srfGraticuleLabelLocationBottom, and srfGraticuleLabelLocationBottomAndTop are used when Type is set to srfGraticuleLabelX.
The srfGraticuleLabelLocationLeft, srfGraticuleLabelLocationRight, and srfGraticuleLabelLocationLeftAndRight are used when Type is set to srfGraticuleLabelY.
Example
This example demonstrates positioning the labels along the X axis along the bottom of the graticule, oriented vertically, outside of the graticule, and offset 0.25 inches from the tick marks.
Graticule.SetLabelPosition(Type:=srfGraticuleLabelX, Location:=srfGraticuleLabelBottom, _
Orientation:=srfGraticuleLabelVertical, PlaceInside:=False, Offset:= 0.25)
Used by: Graticule Object