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
)
Public Function Translate (
horizontal As Double,
vertical As Double
) As MapRectangle
public:
MapRectangle^ Translate(
double horizontal,
double vertical
)
member Translate :
horizontal : float *
vertical : float -> MapRectangle
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:
MapRectangleThe object itself is returned, so it can be reused in the same line of code.
See Also