Share via


IListWebPart.PageType Property

Gets or sets the Web Part page type.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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