Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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: 7.19.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