Click or drag to resize

MapRectangleAddition Operator

Translates the rectangle parameter rect horizontally and vertically, if it is not empty. All its 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 static MapRectangle operator +(
	MapRectangle rect,
	Point offset
)

Parameters

rect
Type: Ptv.XServer.Controls.MapMapRectangle
The rectangle which is the origin of the translate operation.
offset
Type: System.WindowsPoint
The X-value specifies the amount of horizontal translation, positive values shifts the rectangle eastwards, negative values westwards. The Y-value specifies the amount of vertical translation, positive values shifts the rectangle northwards, negative values southwards.

Return Value

Type: MapRectangle
The translated object is returned as a new instance.
See Also