SPCalendarViewStyleCollection.DefaultViewStylesEnabled Property

Gets or sets a Boolean value that specifies whether to display the default day, week, and month view styles in the view style picker control.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property DefaultViewStylesEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPCalendarViewStyleCollection
Dim value As Boolean

value = instance.DefaultViewStylesEnabled

instance.DefaultViewStylesEnabled = value
public bool DefaultViewStylesEnabled { get; set; }

Property Value

Type: System.Boolean
true to display the default calendar view styles in the picker control; otherwise, false. The default value is true.

See Also

Reference

SPCalendarViewStyleCollection Class

SPCalendarViewStyleCollection Members

Microsoft.SharePoint Namespace