MindFusion WinForms Programmer's Guide
Selection Members
Properties Methods Events
 


Represents a set of selected date cells and defines a visualization style applied to the selected elements.

The following tables list the members exposed by the Selection type.

 Public Properties

  Name Description

AllowMultiple

Gets or sets a value indicating whether users are allowed to select multiple elements at a time.

Continuous

Gets or sets a value indicating whether users can select only one range of dates in the calendar.

DayRanges

Gets a read-only list of .NET DateTime objects, sorted chronologically. Each pair in the list represents an interval of selected days.

Enabled

Gets or sets a value indicating whether users are allowed to select any cells in the calendar.

IsEmpty

Gets a value indicating whether this selection is empty.

Ranges

Gets a read-only list of .NET DateTime objects, sorted chronologically. Each pair in the list represents a selected time range.

Resource

Gets the resource related to the current selection.

Resources

Gets the resources related to the current selection.

SelectedElementsStyle

Gets or sets the visualization style to apply to selected elements.

Style

Gets or sets the style of the selection frame drawn around selected calendar cells.

 Public Methods

  Name Description

Add

Overloaded. Adds the specified date or range of dates to the selection.

Contains

Determines whether the specified date is currently selected.

ContainsDay

Determines whether any part of the specified day is selected.

Dispose

Disposes any resources used by this Selection object.

Remove

Overloaded. Removes the specified date or range of dates from the selection.

Reset

Clears the selection.

Restore

Restores a previously saved state.

Save

Saves the current selection state.

Set

Overloaded. Sets the current selection to the specified date or range of dates.

 Public Events

  Name Description

Changed

Raised when the selection changes.

SelectedElementsStyleChanged

Raised when the appearance style of the selection changes.

 See Also

Selection Class
MindFusion.Scheduling.WinForms Namespace