Geometry.StrokeContainsWithDetail 方法

定義

傳回值,這個值描述所指定幾何與目前幾何筆劃的交集。

多載

StrokeContainsWithDetail(Pen, Geometry)

傳回值,這個值描述所指定 Geometry 與將指定的 Pen 套用至目前幾何後而建立之筆劃的交集。

StrokeContainsWithDetail(Pen, Geometry, Double, ToleranceType)

取得值,這個值描述在指定的邊際誤差下,所指定 Geometry 與將指定的 Pen 套用至目前幾何後而建立之筆劃的交集。

StrokeContainsWithDetail(Pen, Geometry)

傳回值,這個值描述所指定 Geometry 與將指定的 Pen 套用至目前幾何後而建立之筆劃的交集。

public:
 System::Windows::Media::IntersectionDetail StrokeContainsWithDetail(System::Windows::Media::Pen ^ pen, System::Windows::Media::Geometry ^ geometry);
public System.Windows.Media.IntersectionDetail StrokeContainsWithDetail (System.Windows.Media.Pen pen, System.Windows.Media.Geometry geometry);
member this.StrokeContainsWithDetail : System.Windows.Media.Pen * System.Windows.Media.Geometry -> System.Windows.Media.IntersectionDetail
Public Function StrokeContainsWithDetail (pen As Pen, geometry As Geometry) As IntersectionDetail

參數

pen
Pen

決定目前幾何筆劃區域的物件。

geometry
Geometry

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

傳回

其中一個列舉值。

備註

判斷指定的幾何是否位於目前幾何筆劃中時,會使用屬性) 所 StandardFlatteningTolerance 定義的預設容錯因數 (。 若要指定您自己的容錯因數,請使用 StrokeContainsWithDetail 方法。

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

適用於

StrokeContainsWithDetail(Pen, Geometry, Double, ToleranceType)

取得值,這個值描述在指定的邊際誤差下,所指定 Geometry 與將指定的 Pen 套用至目前幾何後而建立之筆劃的交集。

public:
 System::Windows::Media::IntersectionDetail StrokeContainsWithDetail(System::Windows::Media::Pen ^ pen, System::Windows::Media::Geometry ^ geometry, double tolerance, System::Windows::Media::ToleranceType type);
public System.Windows.Media.IntersectionDetail StrokeContainsWithDetail (System.Windows.Media.Pen pen, System.Windows.Media.Geometry geometry, double tolerance, System.Windows.Media.ToleranceType type);
member this.StrokeContainsWithDetail : System.Windows.Media.Pen * System.Windows.Media.Geometry * double * System.Windows.Media.ToleranceType -> System.Windows.Media.IntersectionDetail
Public Function StrokeContainsWithDetail (pen As Pen, geometry As Geometry, tolerance As Double, type As ToleranceType) As IntersectionDetail

參數

pen
Pen

決定目前幾何筆劃區域的物件。

geometry
Geometry

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

tolerance
Double

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

type
ToleranceType

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

傳回

其中一個列舉值。

備註

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

適用於