Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ViewFlags property
Collapse the table of content
Expand the table of content

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)

SPViewFlags ViewFlags { get; set; }

Property value

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

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.

© 2015 Microsoft