Back to Devexpress

CalendarControlBase.GetHitInfo(Point) Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-calendarcontrolbase-dot-gethitinfo-x28-system-dot-drawing-dot-point-x29.md

latest2.2 KB
Original Source

CalendarControlBase.GetHitInfo(Point) Method

Obtains information on the calendar control’s element located at the specified point.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual CalendarHitInfo GetHitInfo(
    Point location
)
vb
Public Overridable Function GetHitInfo(
    location As Point
) As CalendarHitInfo

Parameters

NameTypeDescription
locationPoint

A Point structure which specifies the test point coordinates relative to the calendar control’s top-left corner.

|

Returns

TypeDescription
CalendarHitInfo

A CalendarHitInfo object which comprises information about a specific point in the calendar control.

|

Remarks

Use the GetHitInfo method to obtain details on the element located at the specified point in the calendar control. The location parameter should specify the point relative to the control’s top-left corner. Read the CalendarHitInfo.HitTest property of the returned object to identify the type of the visual element located under the test point.

See Also

CalendarControlBase Class

CalendarControlBase Members

DevExpress.XtraEditors.Controls Namespace