ListViewWebPart.ViewType property

Gets or sets the type of view to display in this Web Part.

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

Syntax

'Declaration
<WebPartStorageAttribute(Storage.None)> _
Public Property ViewType As ViewType
    Get
    Set
'Usage
Dim instance As ListViewWebPart
Dim value As ViewType

value = instance.ViewType

instance.ViewType = value
[WebPartStorageAttribute(Storage.None)]
public ViewType ViewType { get; set; }

Property value

Type: Microsoft.SharePoint.WebPartPages.ViewType
Value from the Microsoft.SharePoint.WebPartPages.ViewType enumeration.

Remarks

The ViewType property is read/write.

See also

Reference

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace