TX Text Control .NET Server

Tag Property

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

Description

Gets or sets the content control's tag.

Syntax

public string Tag { get; set; }

Examples

The following example uses ContentControlFieldAdapter.Tag to configure tag as part of the content control field adapter workflow. The configured value is checked before the workflow continues.

contentControlFieldAdapter.Tag = "Quarterly report";
if (!string.IsNullOrWhiteSpace(contentControlFieldAdapter.Tag))
{
    Console.WriteLine($"Tag: {contentControlFieldAdapter.Tag}");
}