Share via


SPCalendarViewStyleCollection.CalendarViewStyleByType method

Returns the calendar view style of the specified type.

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

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