SPView.ToolbarType property
Gets the type of toolbar that is used in the view.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property ToolbarType As String
Get
'Usage
Dim instance As SPView
Dim value As String
value = instance.ToolbarType
public string ToolbarType { get; }
Property value
Type: System.String
A string that indicates the toolbar type.
Remarks
The toolbar section in a view contains the definitions for tools options that are displayed beneath the title area and directly above list items.
Possible values for the type of toolbar include the following, which correspond to values of the Toolbar Type setting in the tool pane for modifying a list view Web Part:
Standard —The most common type of toolbar, which is used, for example, in the All Items views for most lists, and which corresponds to Full Toolbar in the Web Part tool pane.
FreeForm —Used in Default.aspx and Web Part Pages and corresponds to Summary Toolbar in the Web Part tool pane.
None —No toolbar is used in the view, corresponding to No Toolbar in the Web Part tool pane.