Table of Contents

Interface ICalendarHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with calendar control.

public interface ICalendarHandler : IControlHandler, IDisposableObject, IDisposable

Properties

HasBorder

Gets or sets a value indicating whether the control has a border.

MarkDateAttr

Gets or sets the ICalendarDateAttr attributes for the marked days.

MaxValue

Gets or sets the maximum date and time that can be selected in the control.

MinValue

Gets or sets the minimum date and time that can be selected in the control.

MondayFirst

Gets or sets whether or not the first day of week is monday.

NoMonthChange

Gets or sets a value indicating whether to disable the month (and, implicitly, the year) changing. Not implemented on all platforms.

NoYearChange

Gets or sets whether or not current year can be changed.

SequentalMonthSelect

Gets or sets a value indicating whether to use alternative, more compact, style for the month and year selection controls.

ShowHolidays

Gets or sets a value indicating whether to highlight holidays in the calendar

ShowSurroundWeeks

Gets or sets a value indicating whether to show the neighbouring weeks in the previous and next months. (only generic, always on for the native controls)

ShowWeekNumbers

Gets or sets a value indicating whether to show week numbers on the left side of the calendar.

SundayFirst

Gets or sets whether or not the first day of week is sunday.

UseGeneric

Gets or sets a value indicating whether to use generic calendar or native calendar.

Value

Gets or sets the currently selected date.

Methods

AllowMonthChange()
CreateDateAttr(CalendarDateBorder)

Creates ICalendarDateAttr instance.

EnableHolidayDisplay(bool)
EnableMonthChange(bool)
GetAttr(int)

Returns the ICalendarDateAttr attributes for the given day or null.

GetHeaderColorBg()

Get header background color.

GetHeaderColorFg()

Get header foreground color.

GetHighlightColorBg()

Get highlight background color.

GetHighlightColorFg()

Get highlight foreground color.

GetHolidayColorBg()

Gets holidays background color.

GetHolidayColorFg()

Gets holidays foreground color.

HitTest(PointD)

Returns one of Calendar.HitTestResult constants.

Mark(int, bool)

Marks or unmarks the day.

ResetAttr(int)

Clears any attributes associated with the given day.

SetAttr(int, ICalendarDateAttr?)

Sets the ICalendarDateAttr attributes for the given day.

SetHeaderColors(Color, Color)

Sets values for HeaderColorBg and HeaderColorFg properties.

SetHighlightColors(Color, Color)

Sets values for HighlightColorBg and HighlightColorFg properties.

SetHoliday(int)

Marks the specified day as being a holiday in the current month.

SetHolidayColors(Color, Color)

Sets values for HolidayColorBg and HolidayColorFg properties.

SetRange(bool, bool)

Sets possible date range in the native control.