Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPCalendarViewStyleCollection Class

Represents a collection of SPCalendarViewStyle objects.

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

'Declaration
<SubsetCallableTypeAttribute> _
Public NotInheritable Class SPCalendarViewStyleCollection _
	Inherits SPBaseCollection
'Usage
Dim instance As SPCalendarViewStyleCollection

Use the SPCalendarViewStyleCollection constructor to return the collection of calendar view styles that are associated with a specified list view that is used in a specified list.

Use an indexer to return a single calendar view style from the collection. For example, if the collection is assigned to a variable named myCalendarViewStyles, use myCalendarViewStyles[index] in C#, or myCalendarViewStyles(index) in Visual Basic, where index is either the index number of the calendar view style in the collection or the name of the calendar view style template.

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