[]
        
(Showing Draft Content)

C1.Win.Schedule.C1Calendar

C1Calendar Class

The C1Calendar control is a fully functional Outlook-style calendar that enables end-users to select the current date or the set of dates to navigate through the C1Schedule control. Depending on the amount of space available, the C1Calendar control can display one or more months at a time.

Inheritance
C1Calendar
Implements
Namespace: C1.Win.Schedule
Assembly: C1.Win.Schedule.8.dll
Syntax
[ToolboxBitmap(typeof(C1Calendar), "C1Calendar.png")]
public class C1Calendar : XView, ISupportInitialize
Remarks

A functional scheduling application can be created without using the C1Calendar control, but the C1Calendar provides visual navigational capabilities.

Constructors

Name Description
C1Calendar()

Initializes a new instance of the C1Calendar control.

Properties

Name Description
BackColor
BackgroundImage
BackgroundImageLayout
BoldedDates

Gets or sets an array of bolded dates.

CalendarDimensions

Gets or sets the maximum number of months to display in control. Actual number of months depends on the available space.

CalendarInfo

Gets the CalendarInfo object for the C1Calendar control.

CurrentMonthDisplayOffset

Gets or sets the current month display offset.

DefaultSize
DropDownMonthCount

Gets or sets the number of items in dropdown month/year selectors in the month header. The default value is 9.

Font
ForeColor
MaxSelectionCount

Gets or sets the maximum number of days that can be selected in the C1Calendar control. The default value is 42.

RightToLeftLayout

Gets or sets a value indicating whether the control can be laid out from right to left.

Schedule

Gets or sets the reference to the C1Schedule control associated with the C1Calendar control.

SelectedDates

Gets or sets an array of selected dates.

ShowNavigationButtons

Determines whether control displays navigation buttons in the month header.

ShowWeekNumbers

Gets or sets the bool value indicating whether C1Calendar control displays week numbers to the left of each row of days.

Theme

Gets the Theme object determining the control appearance.

Methods

Name Description
BeginInit()
Dispose(bool)
EndInit()
GetDisplayRange(bool)

Returns date information that represents the low and high limits of the displayed dates of the control.

OnDragDrop(DragEventArgs)
OnDragEnter(DragEventArgs)
OnDragOver(DragEventArgs)
OnFontChanged(EventArgs)
OnMouseUp(MouseEventArgs)
OnMouseWheel(MouseEventArgs)
OnParentChanged(EventArgs)
OnRightToLeftChanged(EventArgs)
Refresh()

Forces the control to invalidate its client area and immediately redraw itself and any child controls.

ResetTheme()

Resets the value of the Theme property.

ResetVisualStyle()

Resets the value of the C1.Win.Schedule.C1Calendar.VisualStyle property.

SetBoundsCore(int, int, int, int, BoundsSpecified)
ShouldSerializeCalendarInfo()
ShouldSerializeTheme()

Events

Name Description
BeforeDayFormat

Occurs before the day tooltip is shown.

BeforeDayTooltipShow

Occurs before the day tooltip is shown.

DisplayRangeChanged

Occurs when display range changed.

SelectionChanged

Occurs when the range of selected days is changed.