Uređivanje

Dijeli putem


Geometry.FillContains Method

Definition

Indicates whether the Geometry completely contains the specified Geometry.

Overloads

FillContains(Geometry)

Indicates whether the current geometry completely contains the specified Geometry.

FillContains(Point)

Indicates whether the geometry contains the specified Point.

FillContains(Geometry, Double, ToleranceType)

Indicates whether the current geometry contains the specified Geometry, given the specified margin of error.

FillContains(Point, Double, ToleranceType)

Indicates whether the geometry contains the specified Point, given the specified margin of error.

FillContains(Geometry)

Indicates whether the current geometry completely contains the specified Geometry.

public:
 bool FillContains(System::Windows::Media::Geometry ^ geometry);
public bool FillContains (System.Windows.Media.Geometry geometry);
member this.FillContains : System.Windows.Media.Geometry -> bool
Public Function FillContains (geometry As Geometry) As Boolean

Parameters

geometry
Geometry

The geometry to test for containment.

Returns

true if the current geometry completely contains geometry; otherwise, false.

Remarks

The default margin of error (described by the StandardFlatteningTolerance property) is used when determining whether the current geometry contains the specified geometry. To specify your own margin of error, use the FillContains method.

Applies to

FillContains(Point)

Indicates whether the geometry contains the specified Point.

public:
 bool FillContains(System::Windows::Point hitPoint);
public bool FillContains (System.Windows.Point hitPoint);
member this.FillContains : System.Windows.Point -> bool
Public Function FillContains (hitPoint As Point) As Boolean

Parameters

hitPoint
Point

The point to test for containment.

Returns

true if the geometry contains hitPoint; otherwise, false.

Remarks

The default tolerance factor (described by the StandardFlatteningTolerance property) is used when determining whether the geometry contains the specified point. To specify your own tolerance factor, use the FillContains method.

Applies to

FillContains(Geometry, Double, ToleranceType)

Indicates whether the current geometry contains the specified Geometry, given the specified margin of error.

public:
 bool FillContains(System::Windows::Media::Geometry ^ geometry, double tolerance, System::Windows::Media::ToleranceType type);
public bool FillContains (System.Windows.Media.Geometry geometry, double tolerance, System.Windows.Media.ToleranceType type);
member this.FillContains : System.Windows.Media.Geometry * double * System.Windows.Media.ToleranceType -> bool
Public Function FillContains (geometry As Geometry, tolerance As Double, type As ToleranceType) As Boolean

Parameters

geometry
Geometry

The geometry to test for containment.

tolerance
Double

The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution. If tolerance is less than .000001, .000001 is used instead.

type
ToleranceType

One of the ToleranceType values that specifies whether the tolerance factor is an absolute value or relative to the area of the geometry.

Returns

true if the current geometry contains geometry, given the specified margin of error; otherwise, false.

Remarks

Some Geometry methods (such as FillContains) produce or use a polygonal approximation of the geometry. The tolerance factor specifies the maximum distance between points in this polygonal approximation. Smaller tolerance values produce better approximations, but require more processing than an approximation with a large tolerance factor.

Applies to

FillContains(Point, Double, ToleranceType)

Indicates whether the geometry contains the specified Point, given the specified margin of error.

public:
 bool FillContains(System::Windows::Point hitPoint, double tolerance, System::Windows::Media::ToleranceType type);
public bool FillContains (System.Windows.Point hitPoint, double tolerance, System.Windows.Media.ToleranceType type);
member this.FillContains : System.Windows.Point * double * System.Windows.Media.ToleranceType -> bool
Public Function FillContains (hitPoint As Point, tolerance As Double, type As ToleranceType) As Boolean

Parameters

hitPoint
Point

The point to test for containment.

tolerance
Double

The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. If tolerance is less than .000001, .000001 is used instead.

type
ToleranceType

One of the ToleranceType values that specifies whether the tolerance factor is an absolute value or relative to the area of the geometry.

Returns

true if the geometry contains hitPoint, given the specified margin of error; otherwise, false.

Remarks

Some Geometry methods (such as FillContains) produce or use a polygonal approximation of the geometry. The tolerance factor specifies the maximum distance between points in this polygonal approximation. Smaller tolerance values produce better approximations, but require more processing than an approximation with a large tolerance factor.

Applies to