Click or drag to resize
PortalContextIsDesignMode Method
Returns true if the given mode is considered design mode (with web parts active)

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public static bool IsDesignMode(
	ViewModeEnum mode,
	bool allowDisabled = true
)

Parameters

mode
Type: CMS.PortalEngineViewModeEnum
View mode to check
allowDisabled (Optional)
Type: SystemBoolean
If true (default), the disabled design view mode is detected as design mode

Return Value

Type: Boolean
See Also