TX Text Control .NET for WPF

RichTextContentControl Class

Class|Introduced in 21.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. FieldAdapter
  2. ContentControlFieldAdapter
  3. RichTextContentControl

Description

The RichTextContentControl implements the MS Word specific plain text content control field. This field must be used in combination with an ApplicationField that should be modified using this adapter.

Syntax

public class RichTextContentControl : ContentControlFieldAdapter

Examples

The following example creates a Rich Text Content Control instance and configures its text setting for a document workflow.

TXTextControl.DocumentServer.Fields.RichTextContentControl richTextContentControl = new();
richTextContentControl.Text = "Quarterly results";

Members

Constructors

ConstructorDescription
ContentControlFieldAdapterInitializes a new instance of the ContentControlFieldAdapter class. (Inherited from ContentControlFieldAdapter.)
RichTextContentControlInitializes a new instance of the RichTextContentControl class.

Properties

PropertyDescription
ContentDeletableSpecifies whether the content of the content control field should be deletable or not. (Inherited from ContentControlFieldAdapter.)
ContentEditableSpecifies whether the content of the content control field should be editable or not. (Inherited from ContentControlFieldAdapter.)
IdGets or sets the content control's id. (Inherited from ContentControlFieldAdapter.)
PlaceholderGets or sets the placeholder field part of the content control field. (Inherited from ContentControlFieldAdapter.)
TagGets or sets the content control's tag. (Inherited from ContentControlFieldAdapter.)
TextGets or sets the text of the content control field.
TitleGets or sets the content control's title. (Inherited from ContentControlFieldAdapter.)
TypeGets or sets the type of the content control field. (Inherited from ContentControlFieldAdapter.)