IListWebPart.PageType property
SharePoint 2013
Gets or sets the Web Part page type.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: Microsoft.SharePoint.PAGETYPEA 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).