Click or drag to resize
CMSDeviceLayout Class
Device layout block.
Inheritance Hierarchy

Namespace: CMS.PortalControls
Assembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 8.2.23
Syntax
C#
public class CMSDeviceLayout : CMSConditionalLayout

The CMSDeviceLayout type exposes the following members.

Constructors
  NameDescription
Public methodCMSDeviceLayout
Device layout constructor.
Top
Methods
  NameDescription
Public methodCheckLayoutVisible
Checks whether the layout is visible or not and returns the state of the layout
(Inherited from CMSConditionalLayout.)
Protected methodOnLoad
Load event handler
(Inherited from CMSConditionalLayout.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldmGroupVisible
Returns the state of the visibility of the control within the group
(Inherited from CMSConditionalLayout.)
Protected fieldmPagePlaceholder
Parent page placeholder.
(Inherited from CMSConditionalLayout.)
Protected fieldmVisible
Returns true if the layout is visible.
(Inherited from CMSConditionalLayout.)
Protected fieldmWebPartZones
List of the inner web part zones.
(Inherited from CMSConditionalLayout.)
Top
Properties
  NameDescription
Public propertyActiveInDesignMode
If true, the layout behaves actively in design mode of the page, meaning that it evaluates it's display condition
(Inherited from CMSConditionalLayout.)
Public propertyGroupName
Name of the layout group to which the layout belongs. If more layouts use the same group, only the first one that matches the visibility condition is displayed.
(Inherited from CMSConditionalLayout.)
Public propertyPagePlaceholder
Parent page placeholder.
(Inherited from CMSConditionalLayout.)
Public propertyVisible
Returns true if the layout is visible.
(Inherited from CMSConditionalLayout.)
Public propertyVisibleForDeviceProfiles
List of device profile names separated by semicolon in which current device must belong in order to display the layout
(Overrides CMSConditionalLayoutVisibleForDeviceProfiles.)
Public propertyVisibleForDocumentTypes
If true, the layout is shown only for given document types. The value contains list of document type class names separated by semicolon, e.g. "CMS.Article;CMS.Product"
(Inherited from CMSConditionalLayout.)
Public propertyVisibleForDomains
List of domain names separated by semicolon for which the layout is displayed
(Inherited from CMSConditionalLayout.)
Public propertyVisibleForRoles
List of role names separated by semicolon to which the user must belong in order to display the layout
(Inherited from CMSConditionalLayout.)
Public propertyWebPartZones
Returns the list of all the inner web part zones (CMSWebPartZone controls).
(Inherited from CMSConditionalLayout.)
Top
See Also