IListWebPart.PageType property

Gets or sets the Web Part page type.

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

PAGETYPE PageType { get; set; }

Property value

Type: Microsoft.SharePoint.PAGETYPE
A PAGETYPE object that identifies the type of the form.

For a view Web Part, this value is normally set to PAGE_NORMALVIEW. For a form Web Part, this can be set to a form page type (in other words, PAGE_DISPLAYFORM, PAGE_EDITFORM, or PAGE_NEWFORM).