IListWebPart.ViewFlags property

Gets or sets the type of content to be displayed by the current Web Part.

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

Syntax

'Declaration
Property ViewFlags As SPViewFlags
    Get
    Set
'Usage
Dim instance As IListWebPart
Dim value As SPViewFlags

value = instance.ViewFlags

instance.ViewFlags = value
SPViewFlags ViewFlags { get; set; }

Property value

Type: Microsoft.SharePoint.SPViewFlags
A SPViewFlags object that specifies the type of content that the Web Part displays.

Remarks

For a view Web Part, this value is normally one of Hidden, ReadOnly, or Html. For a form Web Part, this value is set to Default to signify that this is the default Web Part form or just HTML.

See also

Reference

IListWebPart interface

IListWebPart members

Microsoft.SharePoint.WebPartPages namespace

SPViewFlags