London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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: 10.10.4
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