Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CalendarHitInfo.HitObject Property

Gets or sets the object being hit.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public object HitObject { get; set; }

#Property Value

Type Description
Object

A DevExpress.XtraScheduler.Drawing.DateNavigatorDayNumberCellInfo object if the day or weeknumber cell of the DateNavigator control is hit; otherwise, null.

#Remarks

Use the DateNavigator.GetHitInfo method to obtain the CalendarHitInfo object. If the CalendarHitInfo.HitTest equals the CalendarHitInfoType.MonthNumber or CalendarHitInfoType.WeekNumber, the HitObject returns the DevExpress.XtraScheduler.Drawing.DateNavigatorDayNumberCellInfo object. Otherwise, it returns null.

See Also