Extent.Contains

Contains(double, double)

Determines whether this extent contains a coordinate defined by the arguments.

public bool Contains(double x, double y)
ParameterTypeDescription
xDoubleX of the coordinate.
yDoubleY of the coordinate.

Return Value

Value, indicating whether coordinate is inside bounding box.

Remarks

Coordinates located on the bounds of this Extent are considered to be contained by this Extent.

See Also


Contains(Extent)

Determines whether this extent contains the argument.

public bool Contains(Extent extent)
ParameterTypeDescription
extentExtentAnother extent.

Return Value

Value, indicating whether this extent contains the argument.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
ArgumentExceptionSpatialReferenceSystem of this extent and the argument are both not null and not equal to each other.

Remarks

Coordinates located on the bounds of this Extent are considered to be contained by this Extent. For this reason, equal extents are considered to contain each other.

See Also


Contains(IGeometry)

Determines whether this extent contains the argument.

public bool Contains(IGeometry geometry)
ParameterTypeDescription
geometryIGeometryA geometry to test for containment.

Return Value

Value, indicating whether this extent contains the argument.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
ArgumentExceptionSpatialReferenceSystem of this extent and the argument are both not null and not equal to each other.

Remarks

Coordinates located on the bounds of this Extent are considered to be contained by this Extent.

See Also