Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Table.Validate() Method

In This Article

Checks whether the current table instance is valid and usable.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

void Validate()

#Remarks

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