Share via


SPCalendarViewStyle Class

Represents a day, week, or month view style for a calendar.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPCalendarViewStyle

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPCalendarViewStyle _
    Implements IComparable(Of SPCalendarViewStyle)

Dim instance As SPCalendarViewStyle
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPCalendarViewStyle : IComparable<SPCalendarViewStyle>

Remarks

A calendar view style is displayed through the Microsoft.SharePoint.WebControls.SPCalendarView control.

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 Web site.

Use an indexer to return a single calendar view style from the collection. For example, if the collection has been 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.

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.

See Also

Reference

SPCalendarViewStyle Members

Microsoft.SharePoint Namespace