Geometry.FillContains 方法

定義

表示 Geometry 是否完整包含指定的 Geometry

多載

FillContains(Geometry)

表示目前幾何是否完整包含指定的 Geometry

FillContains(Point)

表示幾何是否包含指定的 Point

FillContains(Geometry, Double, ToleranceType)

在指定的邊際誤差下,表示目前幾何是否包含指定的 Geometry

FillContains(Point, Double, ToleranceType)

在指定的邊際誤差下,表示幾何是否包含指定的 Point

FillContains(Geometry)

表示目前幾何是否完整包含指定的 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

參數

geometry
Geometry

用來測試內含項目的幾何。

傳回

如果目前幾何完整包含 geometry 則為 true,否則為 false

備註

判斷目前幾何是否包含指定的幾何時,會使用屬性) 所描述 StandardFlatteningTolerance 之錯誤的預設邊界 (。 若要指定您自己的錯誤邊界,請使用 FillContains 方法。

適用於

FillContains(Point)

表示幾何是否包含指定的 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

參數

hitPoint
Point

用來測試內含項目的點。

傳回

如果幾何包含 hitPoint 則為 true,否則為 false

備註

判斷幾何是否包含指定的點時,會使用屬性) 描述 StandardFlatteningTolerance 的預設容錯因數 (。 若要指定您自己的容錯因數,請使用 FillContains 方法。

適用於

FillContains(Geometry, Double, ToleranceType)

在指定的邊際誤差下,表示目前幾何是否包含指定的 Geometry

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

參數

geometry
Geometry

用來測試內含項目的幾何。

tolerance
Double

在幾何多邊形近似法中,點之間的距離上限。 值越小,產生的結果越精確,但執行過程也會比較慢。 如果 tolerance 小於 .000001,則會改用 .000001。

type
ToleranceType

其中一個 ToleranceType 值,這個值會指定容錯因數為絕對值或相對於幾何區域的值。

傳回

如果在指定的邊際誤差下,目前幾何包含 geometry 則為 true,否則為 false

備註

某些 Geometry 方法 (例如 FillContains) 產生或使用幾何的多邊形近似值。 容錯因數會指定此多邊形近似值中點之間的最大距離。 較小的容錯值會產生較佳的近似值,但需要比具有大型容錯因數的近似值更多的處理。

適用於

FillContains(Point, Double, ToleranceType)

在指定的邊際誤差下,表示幾何是否包含指定的 Point

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

參數

hitPoint
Point

用來測試內含項目的點。

tolerance
Double

在幾何多邊形近似法中,點之間的距離上限。 值越小,產生的結果越精確,但執行過程也會比較慢。 如果 tolerance 小於 .000001,則會改用 .000001。

type
ToleranceType

其中一個 ToleranceType 值,這個值會指定容錯因數為絕對值或相對於幾何區域的值。

傳回

如果在指定的邊際誤差下,幾何包含 hitPoint 則為 true,否則為 false

備註

某些 Geometry 方法 (例如 FillContains) 產生或使用幾何的多邊形近似值。 容錯因數會指定此多邊形近似值中點之間的最大距離。 較小的容錯值會產生較佳的近似值,但需要比具有大型容錯因數的近似值更多的處理。

適用於