PocketPlanner 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.

Contact

Gets the contact related to the current selection.

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.

EndDate

Gets the end date of the first range in the selection.

 Since version 3.2, this property is considered obsolete. Instead, use the Ranges property.

IsEmpty

Gets a value indicating whether this selection is empty.

Location

Gets the location related to the current selection.

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.

SelectedElementsStyle

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

StartDate

Gets the start date of the first range in the selection.

 Since version 3.2, this property is considered obsolete. Instead, use the Ranges property.

Style

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

Task

Gets the task related to the current selection.

 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