SPWebPartManager.GetDisplayMode method

Returns the display mode for a webpage that contains Web Part controls.

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

Syntax

'Declaration
Public Function GetDisplayMode As WebPartDisplayMode
'Usage
Dim instance As SPWebPartManager
Dim returnValue As WebPartDisplayMode

returnValue = instance.GetDisplayMode()
public WebPartDisplayMode GetDisplayMode()

Return value

Type: System.Web.UI.WebControls.WebParts.WebPartDisplayMode
The display mode of the Web Parts page.

Exceptions

Exception Condition
ArgumentException

Cannot define the settings for the View property of the ToolPane class.

Remarks

The default is a null reference (Nothing in Visual Basic).

See also

Reference

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace

BrowseDisplayMode