Search
Calendar Methods
 


 Public Methods

  Name Description

ApplyTheme

Overloaded. Applies a Theme to the calendar.

BeginInit

Implements the ISupportInitialize.BeginInit method. Call this method before making several consecutive changes to the control to suppress internal updates, but don't forget to invoke EndInit at the end.

BeginPrint

Initiates a print or print preview for the specified document. The document can be subsequently selected for preview in a PrintPreviewControl or printed by calling its Print method. Call Calendar.EndPrint after the document is no longer used.

CancelModify

Cancels an interactive modification of an item, previously started by a call to StartModify.

CollapseResourceRow

Overloaded. Collapses a row in a Resource view.

CompactItemLanes

Overloaded.  

CompleteModify

Completes an interactive modification of an item, previously started by a call to StartModify.

CreateImage

Overloaded. Creates a bitmap image of the current calendar view.

EndInit

Implements the ISupportInitialize.EndInit method. Call this method to signal that object initialization started with BeginInit is complete.

EndPrint

Finalizes a print or print preview for the specified document. Call after Calendar.BeginPrint when the document is no longer used.

EnsureVisible

Overloaded. Ensures that the specified date or item is visible within the control, scrolling the contents of the control if necessary.

ExpandResourceRow

Overloaded. Expands a row in a Resource view.

GetContactAt

Overloaded. Gets the Contact object whose schedule is displayed at the specified coordinates. This method can be only be used in views that support grouping.

GetDateAt

Overloaded. Returns the date of the calendar cell located at the specified coordinates.

GetElementBounds

Gets the bounding rectangle of a particular calendar element.

GetExactDateAt

Overloaded. Returns the date located at a specified position.

GetFirstDate

Gets the first date of the time range displayed in the calendar.

GetFirstVisibleDate

Determines which is the first visible date in the current view.

GetFirstVisibleResource

Determines which is the first visible resource in the current view.

GetItemAt

Overloaded. Gets the scheduled Item object displayed at the specified coordinates.

GetItemBounds

Retrieves the bounding rectangle of the specified item.

GetItemListLane

Gets the index of the lane of the specified item within a List view whose FreeDrag property is enabled.

GetLastDate

Gets the last date of the time range displayed in the calendar.

GetLastVisibleDate

Determines which is the last visible date in the current view.

GetLastVisibleResource

Determines which is the last visible resource in the current view.

GetListLaneAt

Retrieves the index of the List view lane at the specified point, expressed in client coordinates.

GetLocationAt

Overloaded. Gets the Location object whose schedule is displayed at the specified coordinates. This method can be only be used in views that support grouping.

GetResourceAt

Overloaded. Gets the Resource object whose schedule is displayed at the specified coordinates. This method can be only be used in views that support grouping.

GetResourcesAt

Gets the Resource objects associated with the cells at the specified coordinates.

GetSortedItems

Returns all items from the specified range, sorted by their lanes.

GetTaskAt

Overloaded. Gets the Task object whose schedule is displayed at the specified coordinates. This method can be only be used in views that support grouping.

GetVisibleItems

Retrieves a collection with all currently visible items.

IsResourceRowExpanded

Overloaded. Checks whether a row in a Resource view is expanded.

LoadFrom

Loads schedule data from the specified file.

LoadFromJson

Loads schedule and view state data from a JSON-formatted string.

LoadViewSettings

Overloaded. Loads the view settings from the specified stream or XML document.

Print

Overloaded. Prints the current calendar view.

PrintPreview

Overloaded. Displays a print preview window for the current calendar view.

ResetDrag

If there is a mouse drag operation in progress, it is canceled.

ResetItemViewState

Resets the view-related item data contained in the underlying schedule. For example, items moved around in a list view with enabled FreeDrag property have their relative positions within the view reset.

ResumeDrag

Resumes the previously paused mouse drag operation.

SaveTo

Saves the underlying schedule to the specified file.

SaveToJson

Saves the underlying schedule and current view state to a JSON-formatted string.

SaveViewSettings

Overloaded. Saves the view settings to the specified stream or XML document.

SetItemListLane

Sets the lane index for the specified item within a List view whose FreeDrag property is enabled.

SetViewport

Sets the displayed time interval to the specified range, optionally changing the view resolution. If the interval is outside of the view range, the view range is expanded to include the interval.

SnapInResourceView

Returns a new date representing the the specified date when snapped according to the current Resource View settings.

StartInplaceEdit

Starts in-place editing mode for the specified item to let users edit the item's text.

StartModify

Initiates interactive modification on the specified item.

SuspendDrag

Temporarily pauses the current mouse drag operation.

UpdateLayout

Updates the position of the calendar's child controls such as buttons and scrollbars.

UpdateModify

Updates an interactive modification of an item, previously started by a call to StartModify.

UpdateRow

 

 Protected Methods

  Name Description

Dispose

Cleans up any resources being used.

OnBeginItemDrawing

Raises the BeginItemDrawing event.

OnContinuePrinting

Raises the ContinuePrinting event.

OnCustomizeGrouping

Raises the CustomizeGrouping event.

OnCustomizeText

Raises the CustomizeText event.

OnDateClick

Raises the DateClick event.

OnDraw

Raises the Draw event.

OnDrawing

Raises the Drawing event.

OnEndItemDrawing

Raises the EndItemDrawing event.

OnFilterItem

Raises the FilterItem event.

OnHiddenItemClick

Raises the HiddenItemClick event.

OnHScroll

Raises the HScroll event.

OnItemClick

Raises the ItemClick event.

OnItemCloned

Raises the ItemCloned event.

OnItemCloning

Raises the ItemCloning event.

OnItemCreated

Raises the ItemCreated event.

OnItemCreating

Raises the ItemCreating event.

OnItemCreationCanceled

Raises the ItemCreationCanceled event.

OnItemDeleted

Raises the ItemDeleted event.

OnItemDeleting

Raises the ItemDeleting event.

OnItemDeselecting

Raises the ItemDeselecting event.

OnItemDrawing

Raises the ItemDrawing event.

OnItemInplaceEdited

Raises the ItemInplaceEdited event.

OnItemInplaceEditEnding

Raises the ItemInplaceEditEnding event.

OnItemInplaceEditStarting

Raises the ItemInplaceEditStarting event.

OnItemListLaneChanged

Raises the ItemListLaneChanged event.

OnItemModificationCanceled

Raises the ItemModificationCanceled event.

OnItemModified

Raises the ItemModified event.

OnItemModifying

Raises the ItemModifying event.

OnItemSelecting

Raises the ItemSelecting event.

OnItemSelectionChanged

Raises the ItemSelectionChanged event.

OnItemSelectionComplete

Raises the ItemSelectionComplete event.

OnItemsModified

Raises the ItemsModified event.

OnItemTooltipDisplaying

Raises the ItemTooltipDisplaying event.

OnKeyDown

Control.OnKeyDown override.

OnKeyPress

Control.OnKeyPress override.

OnListViewHeaderClick

Raises the ListViewHeaderClick event.

OnLostFocus

Control.OnLostFocus override.

OnMonthCellClick

Raises the MonthCellClick event.

OnMonthHeaderClick

Raises the MonthHeaderClick event.

OnMonthRangeHeaderClick

Raises the MonthRangeHeaderClick event.

OnMonthWeekHeaderClick

Raises the MonthWeekHeaderClick event.

OnMouseDown

Control.OnMouseDown override.

OnMouseMove

Control.OnMouseMove override.

OnMouseUp

Control.OnMouseUp override.

OnPaint

Control.OnPaint override.

OnPaintBackground

Control.OnPaintBackground override.

OnRecurringItemDeleting

Raises the RecurringItemDeleting event.

OnResize

Control.OnResize override.

OnResourceViewBottomTimelineClick

Raises the ResourceViewBottomTimelineClick event.

OnResourceViewMiddleTimelineClick

Raises the ResourceViewMiddleTimelineClick event.

OnResourceViewRowHeaderClick

Raises the ResourceViewRowHeaderClick event.

OnResourceViewTopTimelineClick

Raises the ResourceViewTopTimelineClick event.

OnRightToLeftChanged

Control.OnRightToLeftChanged override.

OnScroll

Raises the Scroll event.

OnTimetableColumnHeaderClick

Raises the TimetableColumnHeaderClick event.

OnTooltipDisplaying

Raises the TooltipDisplaying event.

OnVisibleDateChanged

Raises the VisibleDateChanged event.

OnVScroll

Raises the VScroll event.

OnWeekRangeHeaderClick

Raises the WeekRangeHeaderClick event.

ProcessDialogKey

Control.ProcessDialogKey override.

 See Also