PortalContext IsDesignMode Method Kentico 8.0 API Reference
Returns true if the given mode is considered design mode (with web parts active)

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

mode
Type: CMS.PortalEngine ViewModeEnum
View mode to check
allowDisabled (Optional)
Type: OnlineSystem Boolean
If true (default), the disabled design view mode is detected as design mode

Return Value

Type: OnlineBoolean
See Also