Share via


SPCalendarViewStyle class

代表一天、 一週或月檢視樣式行事曆。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPCalendarViewStyle

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

Syntax

'宣告
Public NotInheritable Class SPCalendarViewStyle _
    Implements IComparable(Of SPCalendarViewStyle)
'用途
Dim instance As SPCalendarViewStyle
public sealed class SPCalendarViewStyle : IComparable<SPCalendarViewStyle>

備註

行事曆檢視樣式會顯示透過Microsoft.SharePoint.WebControls.SPCalendarView控制。

使用SPCalendarViewStyleCollection建構函式會傳回與指定的清單檢視中指定的網站所用的相關聯的行事曆檢視樣式的集合。

若要從集合中傳回單一的行事曆檢視樣式使用索引器。例如,若集合已指派給變數 myCalendarViewStyles,使用 myCalendarViewStyles [index] 中 C# 或 Visual Basic,其中index是集合中之行事曆檢視樣式的索引編號,或是行事曆檢視樣式範本的名稱中 myCalendarViewStyles (index)。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPCalendarViewStyle members

Microsoft.SharePoint namespace