Click or drag to resize

MapRectangleContains Method (MapRectangle)

Checks whether the rect parameter is located completely within the rectangle, inclusive its edges.

Namespace:  Ptv.XServer.Controls.Map
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public bool Contains(
	MapRectangle rect
)

Parameters

rect
Type: Ptv.XServer.Controls.MapMapRectangle
The rectangle which is being tested for containment.

Return Value

Type: Boolean
If the object is empty, the check always returns false. Otherwise, if parameter rect is empty, the check returns true (an empty rectangle is always located in a non-empty rectangle). Otherwise it returns true, if the rect is located completely within the rectangle, false otherwise.
See Also