IListWebPart.PageType - Propriété

Obtient ou définit le type de page de composant WebPart.

Espace de noms :  Microsoft.SharePoint.WebPartPages
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Property PageType As PAGETYPE
    Get
    Set
'Utilisation
Dim instance As IListWebPart
Dim value As PAGETYPE

value = instance.PageType

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

Valeur de propriété

Type : Microsoft.SharePoint.PAGETYPE
Un objet PAGETYPE qui identifie le type de l'écran.

Remarques

Pour un affichage du composant WebPart, cette valeur est normalement définie à PAGE_NORMALVIEW. Pour un composant WebPart formulaire, cela peut être définie à un type de page de formulaire (en d'autres termes, PAGE_DISPLAYFORM, PAGE_EDITFORMou PAGE_NEWFORM).

Voir aussi

Référence

IListWebPart interface

IListWebPart - Membres

Microsoft.SharePoint.WebPartPages - Espace de noms

PAGETYPE