共用方式為


ListFormWebPart.PageType property

取得或設定ListFormWebPart的頁面類型。

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

Syntax

'宣告
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
<WebBrowsableAttribute(False)> _
Public Property PageType As PAGETYPE
    Get
    Set
'用途
Dim instance As ListFormWebPart
Dim value As PAGETYPE

value = instance.PageType

instance.PageType = value
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
[WebBrowsableAttribute(false)]
public PAGETYPE PageType { get; set; }

Property value

Type: Microsoft.SharePoint.PAGETYPE
其中一個列舉值,指出表單的型別。預設值是PAGE_INVALID

Implements

IListWebPart.PageType

備註

檢視網頁組件中,這個值通常設為PAGE_NORMALVIEW。表單網頁組件中,這個值可以設為表單頁面型別,例如PAGE_DISPLAYFORMPAGE_EDITFORMPAGE_NEWFORM

請參閱

參照

ListFormWebPart class

ListFormWebPart members

Microsoft.SharePoint.WebPartPages namespace