Name 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
Relates a user-defined name to a text field. This can be any kind of text. This name can be used to uniquely identify a text field.
Syntax
public string Name { get; set; }Public Property Name As StringExamples
The following example inserts a Word-compatible text field into a template by using TextField.Name.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);
textField.Name = "TextField1";
if (!string.IsNullOrWhiteSpace(textField.Name))
{
Console.WriteLine($"Name: {textField.Name}");
}Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)
textField.Name = "TextField1"
If Not String.IsNullOrWhiteSpace(textField.Name) Then
Console.WriteLine($"Name: {textField.Name}")
End IfSee Also
Text Fields and Hypertext Links - Identifiers and Names.