Click or drag to resize

MapRectangle Constructor

Overload List
  NameDescription
Public methodMapRectangle
Initializes a new instance of the MapRectangle class, by setting all boundaries to an empty state. This approach is helpful, when Point objects are inserted by the Union methods.
Public methodMapRectangle(IEnumerablePoint)
Initializes a new instance of the MapRectangle class. The resulting object represents the smallest rectangle containing all points provided by the point enumeration, i.e. the new object represents the minimal bounding rectangle of the point collection. The ordering of the points inside the enumeration has no influence on the result.
Public methodMapRectangle(Point)
Initializes a new instance of the MapRectangle class, by setting the West and East boundaries to point.X, as well as the North and South boundaries to point.Y. Therefore, the Width and Height properties have a value of 0.
Public methodMapRectangle(Rect)
Initializes a new instance of the MapRectangle class, by transforming the location and size of parameter rect into boundaries of the new instance.
Public methodMapRectangle(MapRectangle)
Initializes a new instance of the MapRectangle class, by copying the boundaries of parameter originalRectangle.
Public methodMapRectangle(Point, Point)
Initializes a new instance of the MapRectangle class. The resulting object represents the smallest rectangle containing both points, i.e. both points define the boundaries directly. The ordering of the parameters has no influence on the result.
Public methodMapRectangle(Point, Size)
Initializes a new instance of the MapRectangle class. The resulting object is defined by the center and sizeparameter.
Public methodMapRectangle(Double, Double, Double, Double)
Initializes a new instance of the MapRectangle class, by setting the boundaries directly. No checks are made for avoiding a lower east value compared to the west value. The same is true for the north/south pair.
Top
See Also