Share via


SPCalendarViewStyleCollection.CalendarViewStyleByType Method

Returns the calendar view style of the specified type.

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

Syntax

'Declaration
Public Function CalendarViewStyleByType ( _
    strTypeName As String _
) As SPCalendarViewStyle
'Usage
Dim instance As SPCalendarViewStyleCollection
Dim strTypeName As String
Dim returnValue As SPCalendarViewStyle

returnValue = instance.CalendarViewStyleByType(strTypeName)
public SPCalendarViewStyle CalendarViewStyleByType(
    string strTypeName
)

Parameters

  • strTypeName
    Type: System.String

    A string that specifies the calendar view style type, such as "day", "week", or "month".

Return Value

Type: Microsoft.SharePoint.SPCalendarViewStyle
An SPCalendarViewStyle object that represents the calendar view style.

See Also

Reference

SPCalendarViewStyleCollection Class

SPCalendarViewStyleCollection Members

Microsoft.SharePoint Namespace