Table of Contents

Class RichTextField

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Response.Model.Fields
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Represents a textfield that supports HTML.

public class RichTextField : EditableField<string>, IFieldReader, IValueField<string>, IEditableField, IField
Inheritance
RichTextField
Implements
Inherited Members

Constructors

RichTextField()

Initializes a new instance of the RichTextField class.

public RichTextField()

RichTextField(string, bool)

Initializes a new instance of the RichTextField class.

public RichTextField(string value, bool encoded = true)

Parameters

value string

The initial value.

encoded bool

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