MonthCalendar.HitTest 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷曆法中哪個元素位於指定位置。
多載
| 名稱 | Description |
|---|---|
| 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
參數
傳回
MonthCalendar.HitTestInfo A 包含關於指定點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
參數
傳回
MonthCalendar.HitTestInfo A 包含關於指定點MonthCalendar的資訊。