Click or drag to resize

MapRectangleTranslate Method

Translates the rectangle horizontally and vertically, if it is not empty. All boundaries are changed.

Namespace:  Ptv.XServer.Controls.Map
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public MapRectangle Translate(
	double horizontal,
	double vertical
)

Parameters

horizontal
Type: SystemDouble
Amount of horizontal translation, positive values shifts the rectangle eastwards, negative values westwards.
vertical
Type: SystemDouble
Amount of vertical translation, positive values shifts the rectangle northwards, negative values southwards.

Return Value

Type: MapRectangle
The object itself is returned, so it can be reused in the same line of code.
See Also