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所定義UIElementNote 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).

適用於