November Happy Hour will be moved to Thursday December 5th.

Interface IDynamicContentDisplayType

Interface that can be used to indicate if the dynamic content should be rendered with a span or div tag.

Namespace: EPiServer.DynamicContent
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IDynamicContentDisplayType
Remarks

This will affect how the element is rendered in edit mode. Since a inline element cannot have nested block elements you want to use a block element if the preview contains block elements.

Properties

RenderAsBlockElement

Gets a value indicating whether this should be rendered as a block element (div) not (span).

Declaration
bool RenderAsBlockElement { get; }
Property Value
Type Description
System.Boolean

true if this should be rendered as a block element; otherwise, false.

Extension Methods