Name Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a name of the conditional instruction.
Syntax
public string Name { get; set; }Public Property Name As StringExamples
The following example builds a rule around an approval check box in a fillable form by using ConditionalInstruction.Name.
CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
ConditionalInstruction conditionalInstruction = new();
conditionalInstruction.Name = "ConditionalInstruction1";
if (!string.IsNullOrWhiteSpace(conditionalInstruction.Name))
{
Console.WriteLine($"Name: {conditionalInstruction.Name}");
}Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim conditionalInstruction As New ConditionalInstruction()
conditionalInstruction.Name = "ConditionalInstruction1"
If Not String.IsNullOrWhiteSpace(conditionalInstruction.Name) Then
Console.WriteLine($"Name: {conditionalInstruction.Name}")
End IfRemarks
A System.ArgumentException is thrown if the set value is null, an empty string or the name of another ConditionalInstruction object inside the ConditionalInstructionCollection where this object is part of it.