Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Available in Sandboxed Solutions: No
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.