Skip to main content

CalendarHitInfo.HitObject Property

Gets or sets the object being hit.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v24.1.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.InfoType equals the CalendarHitInfoType.MonthNumber or CalendarHitInfoType.WeekNumber, the HitObject returns the DevExpress.XtraScheduler.Drawing.DateNavigatorDayNumberCellInfo object. Otherwise, it returns null.

See Also