Szerkesztés

Megosztás a következőn keresztül:


Calendar.SelectionMode Property

Definition

Gets or sets the selection mode of a Calendar object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property System::Web::UI::WebControls::CalendarSelectionMode SelectionMode { System::Web::UI::WebControls::CalendarSelectionMode get(); void set(System::Web::UI::WebControls::CalendarSelectionMode value); };
[System.ComponentModel.Bindable(true)]
public System.Web.UI.WebControls.CalendarSelectionMode SelectionMode { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.SelectionMode : System.Web.UI.WebControls.CalendarSelectionMode with get, set
Public Property SelectionMode As CalendarSelectionMode

Property Value

The selection mode of the calendar control. The default is Day.

Attributes

Exceptions

The specified value is not one of the CalendarSelectionMode values.

Remarks

The Web Forms CalendarSelectionMode enumeration provides the selections described in the following table.

Value Description
Day A single date can be selected on the Calendar control.
DayWeek A single date or entire week can be selected on the Calendar control.
DayWeekMonth A single date, week, or entire month can be selected on the Calendar control.
None No dates can be selected on the Calendar control. Note: Avoid using this value, because some browsers still allow the user to select a date.

Applies to

See also