CanAdd 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 a value indicating whether a new table can be inserted at the current input position. This property does not check for protected TextFields and/or protected document sections. To perform this use in addition the TextControl.CanEdit property.
Syntax
public bool CanAdd { get; }Public ReadOnly Property CanAdd As BooleanExamples
The following example works with tables in the current document by using TableCollection.CanAdd.
TableCollection tableCollection = textControl.Tables;
tableCollection.Add(3, 3, 10);
if (tableCollection.CanAdd)
{
if (!tableCollection.Add())
{
throw new InvalidOperationException("The item could not be inserted.");
}
}Dim tableCollection As TableCollection = textControl.Tables
tableCollection.Add(3, 3, 10)
If tableCollection.CanAdd Then
If Not tableCollection.Add() Then
Throw New InvalidOperationException("The item could not be inserted.")
End If
End IfLimitations
Read only.