System.Web.UI.WebControls Namespace Calendar Class
Returns the style properties for the week and month selectors. This property is read-only.
[ VB ]
Public ReadOnly Property SelectorStyle As TableItemStyle
[ C# ]
public TableItemStyle SelectorStyle {get;}
[ C++ ]
public: __property TableItemStyle* get_SelectorStyle ( );
[ JScript ]
public function get SelectorStyle ( ) : TableItemStyle;
A TableItemStyle that contains the style properties for the week and month selectors. The default value is an empty TableItemStyle.
The SelectorStyle property is only useful when the SelectionMode is set to CalendarSelectionMode.DayWeek or CalendarSelectionMode.DayWeekMonth.
The following example demonstrates how to set the SelectorStyle to a red foreColor.
<asp:Calendar id = "myCalendar" runat = "server"
SelectionMode = "DayWeekMonth"
SelectorStyle-ForeColor = "#ff0000" />
Calendar Members