Class RichTextModel
Represents a rich text model in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class RichTextModel
Constructors
View SourceRichTextModel()
Declaration
public RichTextModel()
Properties
View SourceBlocks
Gets or sets the block items embedded in the rich text content.
Declaration
public required IEnumerable<ApiBlockItem> Blocks { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ApiBlockItem> |
Markup
Gets or sets the HTML markup of the rich text content.
Declaration
public required string Markup { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceEmpty()
Creates an empty RichTextModel instance.
Declaration
public static RichTextModel Empty()
Returns
| Type | Description |
|---|---|
| RichTextModel | A new RichTextModel instance with empty markup and no blocks. |