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
)
Public Shared Operator + (
rect As MapRectangle,
offset As Point
) As MapRectangle
public:
static MapRectangle^ operator +(
MapRectangle^ rect,
Point offset
)
static let inline (+)
rect : MapRectangle *
offset : Point : MapRectangle
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:
MapRectangleThe translated object is returned as a new instance.
See Also