Share via


ListViewWebPart.ViewFlags property

Gets or sets the type of content to be displayed by the ListViewWebPart.

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

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
<RequiresDesignerPermissionAttribute> _
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ViewFlags As SPViewFlags
    Get
    Set
'Usage
Dim instance As ListViewWebPart
Dim value As SPViewFlags

value = instance.ViewFlags

instance.ViewFlags = value
[WebBrowsableAttribute(false)]
[RequiresDesignerPermissionAttribute]
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.Shared)]
public SPViewFlags ViewFlags { get; set; }

Property value

Type: Microsoft.SharePoint.SPViewFlags
One of the enumeration values that indicates the type of content. The default value is Html.

Implements

IListWebPart.ViewFlags

See also

Reference

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace