Compartilhar via


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)
Available in Sandboxed Solutions: No

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