[]
        
(Showing Draft Content)

C1.Win.Calendar.C1CalendarView

C1CalendarView Class

The C1CalendarView control is used to create a user interface, allowing users to select a specific date (or dates) interactively. Control can display as one month or several months, and provide quick navigation through months and years.

Inheritance
C1CalendarView
Namespace: C1.Win.Calendar
Assembly: C1.Win.Calendar.8.dll
Syntax
[ToolboxBitmap(typeof(C1CalendarView), "C1CalendarView.png")]
public class C1CalendarView : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ISupportUia, ISupportUiaContainer

Constructors

Name Description
C1CalendarView()

Initializes a new instance of the C1CalendarView control.

Properties

Name Description
AnnuallyBoldedDates

Gets or sets an array of annually bolded dates.

AutoSize

Gets or sets a value indicating whether the automatic size adjustment is enabled.

BackColor

Gets or sets control back color.

BackgroundImage

Gets or sets the background image for the control.

BackgroundImageLayout

Do not use this property. To set layout use Theme.Common.BackImageAlignment and Theme.Common.BackImageScaling properties.

BoldedDates

Gets or sets an DateTime array of bolded dates.

Calendar

Gets or set Calendar object that represents time in divisions of control.

CalendarDimensions

Gets or sets a value that indicates how many months will be shown.

CalendarType

Calendar, used to format date.

CalendarWeekRule

Get or sets current calendar week rule.

CaptionFormat

Gets or sets the format to use for the calendar caption.

CurrentCulture

Get or sets current culture for the calendar.

CurrentMonthDisplayOffset

Gets or sets the current month display offset.

DayNameLength

Gets or sets the maximum length of day names.

DayTitlePosition

Gets or sets the Position value indicating where C1CalendarView control displays the day title.

DefaultSize

Gets the default size of the C1CalendarView.

DisabledDates

Gets or sets an DateTime array of disabled dates.

FirstDayOfWeek

Gets or sets the first day of the week as displayed in the month calendar.

ForeColor

Do not use this property.

Margin

Do not use this property.

MaxColumns

Gets or sets the maximum columns for the CalendarDimensions property.

MaxDate

Gets or sets the maximum allowable date. The default value is MaxValue.

MaxSelectionCount

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

MinDate

Gets or sets the minimum allowable date. The default value is MinValue (01/01/0001).

MonthTitlePosition

Gets or sets the Position value indicating where C1CalendarView control displays the month title.

Padding

Do not use this property.

PeriodSelectionType

Gets or sets a value that specifies how to get a date period. Default value is Field.

RightToLeftLayout

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

SelectedDates

Gets or sets an DateTime array of selected dates.

SelectionRule

Gets or sets a SelectionRule value of selection behavior during month navigation.

ShowArrowButtons

Gets or sets the bool value indicating whether C1CalendarView control displays arrow buttons.

ShowToday

Gets or sets a value that indicates whether to display today date.

ShowToolTips

Gets or sets whether the C1CalendarView should display tooltips.

ShowWeekNumbers

Gets or sets the bool value indicating whether C1CalendarView control displays week numbers.

Styles

Gets or sets calendar styles.

TodayFormat

Gets or sets the text format of the "Today" button. Use curly braces to define the date format.

VerticalOrientationLayout

Gets or sets the bool value indicating whether positioned vertically of the month

WorkDays

Gets or sets the WorkDays object which specifies weekends for the single week.

Methods

Name Description
BeginInit()
BeginUpdate()

Maintains performance while C1CalendarView is being changed.

Dispose(bool)

Releases the unmanaged resources used by the C1CalendarView and its child controls and optionally releases the managed resources.

EndInit()
EndUpdate()

Resumes processing after it has been suspended by a call to BeginUpdate().

FinishEdit()

Finishes edit mode for current date picker.

GetDisplayRange(bool)

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

GetPreferredSize(Size)

Retrieves the size of a rectangular area into which a control can be fitted.

OnBeforeDayTooltipShow(BeforeDayTooltipShowEventArgs)

Rises the BeforeDayTooltipShow event.

OnDayFormatting(DayFormattingEventArgs)

Rises the DayFormatting event.

OnDisplayRangeChanged(DateRangeEventArgs)

Rises the DisplayRangeChanged event.

OnDropDownClosed(EventArgs)

Rises the DropDownOpening event.

OnDropDownClosing(EventArgs)

Rises the DropDownOpening event.

OnDropDownOpened(EventArgs)

Rises the DropDownOpening event.

OnDropDownOpening(EventArgs)

Rises the DropDownOpening event.

OnRightToLeftChanged(EventArgs)

Rises the RightToLeftChanged event.

OnRightToLeftLayoutChanged(EventArgs)

Rises the RightToLeftLayoutChanged event.

OnSelectionChanged(EventArgs)

Rises the SelectionChanged event.

OnSelectionChanging(DateChangingEventArgs)

Rises the SelectionChanging event.

OnThemeChanged(EventArgs)

Rises the StylesChanged event.

OnVisibleChanged(EventArgs)
ProcessMnemonic(char)
ResetBoldedDates()

Clears BoldedDates.

ResetDisabledDates()

Clears DisabledDates.

ResetMaxDate()

Clears MaxDate.

ResetMinDate()

Clears MinDate.

ResetWorkDays()

Clears WorkDays.

SetBoundsCore(int, int, int, int, BoundsSpecified)

Performs the work of setting the specified bounds of this control.

ShouldSerializeBoldedDates()

Indicates whether the BoldedDates property should be persisted.

ShouldSerializeDisabledDates()

Indicates whether the DisabledDates property should be persisted.

ShouldSerializeMaxDate()

Indicates whether the MaxDate property should be persisted.

ShouldSerializeMinDate()

Indicates whether the MinDate property should be persisted.

ShouldSerializeWorkDays()

Indicates whether the WorkDays property should be persisted.

ShowAboutBox()

Shows the About Box for an instance of C1CalendarView.

WndProc(ref Message)

Events

Name Description
BeforeDayTooltipShow

Occurs before the day tooltip is shown.

DayFormatting

Occurs before applying styles to a day.

DisplayRangeChanged

Occurs when display range changed.

DropDownClosed

Occurs after a dropdown component is closed.

DropDownClosing

Occurs as a dropdown component is closing.

DropDownOpened

Occurs after a dropdown component is opened.

DropDownOpening

Occurs as a dropdown component is opening.

RightToLeftLayoutChanged

Occurs when the RightToLeftLayout property is changed.

SelectionChanged

Occurs when the range of selected days is changed.

SelectionChanging

Occurs before the range of selected days will be changed.

StylesChanged

Occurs when calendar theme changed.