UIElement.HitTestCore UIElement.HitTestCore UIElement.HitTestCore UIElement.HitTestCore Method

定義

實作 HitTestCore(GeometryHitTestParameters) 以提供基底項目點擊測試行為。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior.

多載

HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

實作 HitTestCore(GeometryHitTestParameters)以提供基底項目點擊測試行為 (傳回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

實作 HitTestCore(PointHitTestParameters)以提供基底項目點擊測試行為 (傳回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

實作 HitTestCore(GeometryHitTestParameters)以提供基底項目點擊測試行為 (傳回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

protected:
 override System::Windows::Media::GeometryHitTestResult ^ HitTestCore(System::Windows::Media::GeometryHitTestParameters ^ hitTestParameters);
protected override System.Windows.Media.GeometryHitTestResult HitTestCore (System.Windows.Media.GeometryHitTestParameters hitTestParameters);
override this.HitTestCore : System.Windows.Media.GeometryHitTestParameters -> System.Windows.Media.GeometryHitTestResult
Protected Overrides Function HitTestCore (hitTestParameters As GeometryHitTestParameters) As GeometryHitTestResult

參數

hitTestParameters
GeometryHitTestParameters GeometryHitTestParameters GeometryHitTestParameters GeometryHitTestParameters

描述要執行的點擊測試,包括初始點擊點。Describes the hit test to perform, including the initial hit point.

傳回

測試的結果,包括已評估的幾何。Results of the test, including the evaluated geometry.

備註

如需在進一步衍生Visual.HitTestCore類別中覆寫這個方法的相關資訊, 請參閱原始的虛擬方法。See the original virtual method Visual.HitTestCore for information on overriding this method in further derived classes. 請注意, 有幾個TextBlock特定的控制項 (例如) 會有不同的執行, 這會覆寫這一項。Note that several specific controls (TextBlock, for example) do have distinct implementations, which override this one.

這個方法不是用來從您的應用程式程式碼呼叫。This method is not intended to be called from your application code. 這個方法支援由輸入系統的各種層面公開的內部點擊測試行為 (例如, 滑鼠指標是否在元素上方)。This method supports internal hit testing behaviors that are exposed by various aspects of the input system (whether the mouse pointer is over an element, for example).

HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

實作 HitTestCore(PointHitTestParameters)以提供基底項目點擊測試行為 (傳回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

protected:
 override System::Windows::Media::HitTestResult ^ HitTestCore(System::Windows::Media::PointHitTestParameters ^ hitTestParameters);
protected override System.Windows.Media.HitTestResult HitTestCore (System.Windows.Media.PointHitTestParameters hitTestParameters);
override this.HitTestCore : System.Windows.Media.PointHitTestParameters -> System.Windows.Media.HitTestResult
Protected Overrides Function HitTestCore (hitTestParameters As PointHitTestParameters) As HitTestResult

參數

hitTestParameters
PointHitTestParameters PointHitTestParameters PointHitTestParameters PointHitTestParameters

描述要執行的點擊測試,包括初始點擊點。Describes the hit test to perform, including the initial hit point.

傳回

測試結果,包括受評估的點。Results of the test, including the evaluated point.

備註

如需在進一步衍生Visual.HitTestCore類別中覆寫這個方法的相關資訊, 請參閱原始的虛擬方法。See the original virtual method Visual.HitTestCore for information on overriding this method in further derived classes. 請注意, 有幾個TextBlock特定的控制項 (例如) 有不同的實作為HitTestCore , 其會UIElement覆寫, 如所定義。Note that several specific controls (TextBlock, for example) do have distinct implementations, which override HitTestCore as defined by UIElement.

這個方法不是用來從您的應用程式程式碼呼叫。This method is not intended to be called from your application code. 這個方法支援由輸入系統的各種層面公開的內部點擊測試行為 (例如, 滑鼠指標是否在元素上方)。This method supports internal hit testing behaviors that are exposed by various aspects of the input system (whether the mouse pointer is over an element, for example).

適用於