1. RichTextField

Class RichTextField

Version: 21.x

Represents a textfield that supports HTML.

Inheritance
System.Object
Field<System.String>
EditableField<System.String>
RichTextField
Implements
IValueField<System.String>
Namespace: Sitecore.LayoutService.Client.Response.Model.Fields
Assembly: Sitecore.LayoutService.Client.Abstractions.dll
Syntax
public class RichTextField : EditableField<string>, IFieldReader, IValueField<string>, IEditableField, IField

Constructors

RichTextField()

Initializes a new instance of the RichTextField class.

Declaration
public RichTextField()

RichTextField(String, Boolean)

Initializes a new instance of the RichTextField class.

Declaration
public RichTextField(string value, bool encoded = true)
Parameters
TypeNameDescription
System.Stringvalue

The initial value.

System.Booleanencoded

True if the value is encoded, otherwise false. Defaults to true.

Implements

If you have suggestions for improving this article, let us know!