TX Text Control .NET Server

Data Property

Property|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets additional data of the subtextpart. An empty string indicates that the subtextpart has no data.

Syntax

public string Data { get; set; }

Examples

The following example stores compact application metadata with a named customer region.

textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);

SubTextPart customer = new("CustomerName", 10)
{
    Data = @"{""category"":""customer"",""reviewed"":true}"
};

textControl.SubTextParts.Add(customer);