MonthCalendar.HitTest 方法

定義

判斷日曆的哪個項目是在指定的位置。

多載

HitTest(Point)

傳回物件,其中包含月曆控制項中的哪部分資訊在 Point 所指定的位置上。

HitTest(Int32, Int32)

傳回 MonthCalendar.HitTestInfo,其中包含月曆控制項中的哪部分資訊在指定的 X 和 Y 座標上。

HitTest(Point)

傳回物件,其中包含月曆控制項中的哪部分資訊在 Point 所指定的位置上。

public:
 System::Windows::Forms::MonthCalendar::HitTestInfo ^ HitTest(System::Drawing::Point point);
public System.Windows.Forms.MonthCalendar.HitTestInfo HitTest (System.Drawing.Point point);
member this.HitTest : System.Drawing.Point -> System.Windows.Forms.MonthCalendar.HitTestInfo
Public Function HitTest (point As Point) As MonthCalendar.HitTestInfo

參數

point
Point

Point,包含點擊測試之點的 XY 座標。

傳回

MonthCalendar.HitTestInfo,包含 MonthCalendar 上指定點的相關資訊。

另請參閱

適用於

HitTest(Int32, Int32)

傳回 MonthCalendar.HitTestInfo,其中包含月曆控制項中的哪部分資訊在指定的 X 和 Y 座標上。

public:
 System::Windows::Forms::MonthCalendar::HitTestInfo ^ HitTest(int x, int y);
public System.Windows.Forms.MonthCalendar.HitTestInfo HitTest (int x, int y);
member this.HitTest : int * int -> System.Windows.Forms.MonthCalendar.HitTestInfo
Public Function HitTest (x As Integer, y As Integer) As MonthCalendar.HitTestInfo

參數

x
Int32

要點擊測試之點的 X 座標。

y
Int32

要點擊測試之點的 Y 座標。

傳回

MonthCalendar.HitTestInfo,包含 MonthCalendar 上指定點的相關資訊。

另請參閱

適用於