Class RichTextTextElement
Represents a text node within rich text content in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class RichTextTextElement : IRichTextElement
Constructors
View SourceRichTextTextElement(string)
Initializes a new instance of the RichTextTextElement class.
Declaration
public RichTextTextElement(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text content of the element. |
Properties
View SourceTag
Gets the tag name of the element (e.g., "p", "h1", "#text", "#root").
Declaration
public string Tag { get; }
Property Value
| Type | Description |
|---|---|
| string |
Text
Gets the text content of the element.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |