IListWebPart.PageType property

Gets or sets the Web Part page type.

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

Syntax

'Declaration
Property PageType As PAGETYPE
    Get
    Set
'Usage
Dim instance As IListWebPart
Dim value As PAGETYPE

value = instance.PageType

instance.PageType = value
PAGETYPE PageType { get; set; }

Property value

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

Remarks

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).

See also

Reference

IListWebPart interface

IListWebPart members

Microsoft.SharePoint.WebPartPages namespace

PAGETYPE