Click or drag to resize
ViewModeExtensions Class
Extensions for the view mode enum
Inheritance Hierarchy
SystemObject
  CMS.PortalEngineViewModeExtensions

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public static class ViewModeExtensions

The ViewModeExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIsDesign
Returns true if the view mode is design view mode
Public methodStatic memberIsEdit
Returns true if the view mode is editing view mode
Public methodStatic memberIsEditLive
Returns true if the view mode is editing view mode for live site
Public methodStatic memberIsLiveSite
Returns true if the view mode is live site view mode
Public methodStatic memberIsOneOf
Returns true if the view mode is one of the given view modes
Public methodStatic memberIsPreview
Returns true if the view mode is preview view mode
Top
See Also