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

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 12.0.0
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