Data Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property Data As StringExamples
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);textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim customer As New SubTextPart("CustomerName", 10) With {
.Data = "{""category"":""customer"",""reviewed"":true}"
}
textControl.SubTextParts.Add(customer)