ListFormWebPart.PageType Property
Gets or sets the page type for ListFormWebPart.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<WebBrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property PageType As PAGETYPE
Get
Set
'Usage
Dim instance As ListFormWebPart
Dim value As PAGETYPE
value = instance.PageType
instance.PageType = value
[WebBrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public PAGETYPE PageType { get; set; }
Property Value
Type: Microsoft.SharePoint.PAGETYPE
One of the enumeration values that indicates the type of a form. The default value is PAGE_INVALID.
Implements
Remarks
For a view Web Part, this value is normally set to PAGE_NORMALVIEW. For a form Web Part, this value can be set to a form page type, such as PAGE_DISPLAYFORM, PAGE_EDITFORM, or PAGE_NEWFORM.