CanAdd Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a value indicating whether a new text field can be inserted at the current input position. It is true if a text field can be inserted, otherwise it is false. Text Control cannot insert a text field inside of another text field.
Syntax
public bool CanAdd { get; }Public ReadOnly Property CanAdd As BooleanExamples
The following example checks the can add state before recording the object's current status.
if (textFieldCollectionBase.CanAdd)
{
Console.WriteLine("Text Field Collection Base is ready for this operation.");
}If textFieldCollectionBase.CanAdd Then
Console.WriteLine("Text Field Collection Base is ready for this operation.")
End IfLimitations
Read only.
See Also
Text Fields and Hypertext Links - Inserting and Deleting Text Fields.