Skip to main content
.NET Framework 4.5.2+

Table.Validate() Method

Checks whether the current table instance is valid and usable.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core


void Validate()


The Validate method throws an exception if the current table is marked as deleted and is therefore unusable.

A Table object in a collection obtained using the SubDocument.Tables property is always valid and usable. However, a reference to the table can be is stored in a variable like this:

Table tbl = RichEditControl.Document.Tables[0];

Subsequently, at some point the table may be deleted and the reference becomes invalid. Even when a table is restored with Undo, the table is re-created as a new object and the former reference becomes unusable. When this happens, the Validate method will throw an exception.

See Also