Share

Outline.Contains Method

Determine if this Outline contains the specified point to within a tolerance.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public bool Contains(
	XYZ point,
	double tolerance
)

Parameters

point  XYZ
The point to test for containment.
tolerance  Double
The tolerance to use when determining whether the point is contained. Defaults to zero.

Return Value

Boolean
True if this outline contains the given point, or false otherwise.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

Remarks

If the tolerance is positive, the point may lie up to the tolerance amount outside the outline in each coordinate. If the tolerance is negative, the point must lie at least the tolerance amount inside the outline in each coordinate.

See Also

Reference

Was this information helpful?