共用方式為


SPCalendarViewStyleCollection.DefaultViewStylesEnabled property

取得或設定布林值,指定是否要顯示在檢視樣式選擇器控制項的預設日、 週和月檢視樣式。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property DefaultViewStylesEnabled As Boolean
    Get
    Set
'用途
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否則, false。預設值是true。

請參閱

參照

SPCalendarViewStyleCollection class

SPCalendarViewStyleCollection members

Microsoft.SharePoint namespace