Class Extent
Extent class
A two-dimensional spatial bounding box.
public class Extent : IEquatable<Extent>
Constructors
| Name | Description |
|---|
| Extent() | Creates new instance. |
| Extent(SpatialReferenceSystem) | Creates new instance. |
| Extent(double, double, double, double, SpatialReferenceSystem) | Creates new instance. |
Properties
| Name | Description |
|---|
| Center { get; } | Center of the extent. |
| Height { get; } | Height of the extent. |
| IsValid { get; } | Determines whether this Extent is valid. |
| SpatialReferenceSystem { get; set; } | SpatialReferenceSystem associated with this extent. Can be null if SpatialReferenceSystem is unknown. Use GetTransformed in order to transform extent between difference spatial reference systems. |
| Width { get; } | Width of the extent. |
| XMax { get; set; } | Maximum value of the X coordinate. |
| XMin { get; set; } | Minimum value of the X coordinate. |
| YMax { get; set; } | Maximum value of the Y coordinate. |
| YMin { get; set; } | Minimum value of the Y coordinate. |
Methods
| Name | Description |
|---|
| Clone() | Clones this instance. |
| Contains(Extent) | Determines whether this extent contains the argument. |
| Contains(IGeometry) | Determines whether this extent contains the argument. |
| Contains(double, double) | Determines whether this extent contains a coordinate defined by the arguments. |
| Equals(Extent) | Indicates whether the current object is equal to another object of the same type. |
| override Equals(object) | Determines whether the specified object is equal to the current object. |
| override GetHashCode() | Serves as the default hash function. |
| GetTransformed(SpatialReferenceSystem) | Returns new extent in specified SpatialReferenceSystem that contains this extent. |
| Grow(Extent) | Grows this extent so it includes the argument. |
| Grow(double, double) | Grows this extent so it includes the specified point. |
| GrowX(double) | Grows this extent along the X axis so it includes the specified value. |
| GrowY(double) | Grows this extent along the Y axis so it includes the specified value. |
| Intersects(Extent) | Determines whether this extent intersects with the argument. |
| Intersects(IGeometry) | Determines whether this extent intersects with the argument. |
| Normalize() | Swaps XMin with XMax if Width is negative and YMin with YMax if Height is negative. |
| ToPolygon() | Converts this extent to a rectangular polygon that represents it. |
| override ToString() | Returns a string that represents the current object. |
| operator == | Implements the ‘==’ operator. |
| operator != | Implements the ‘!=’ operator. |
See Also