officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-41e6a454.md
Provides access to a collection of tables contained in the current document.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
TableCollection Tables { get; }
ReadOnly Property Tables As TableCollection
| Type | Description |
|---|---|
| TableCollection |
A TableCollection object that is the collection of all tables in the current document.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Tables property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
word-document-api-table-examples/CS/Program.cs#L16
CreateTable(wordProcessor.Document);
SetColumnWidth(wordProcessor.Document.Tables[0]);
WrapTextAroundTable(wordProcessor.Document);
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/SelectionCollection.cs#L104
document.LoadDocument("Documents//SelectionCollection.docx", DocumentFormat.OpenXml);
Table rootTable = document.Tables[0];
DocumentPosition position10 = rootTable.Rows[1].Cells[0].Range.Start;
winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L14
CreateTable(richEditControl1.Document)
SetColumnWidth(richEditControl1.Document.Tables(0))
MergeAndSplit(richEditControl1.Document)
word-document-api-table-examples/VB/Program.vb#L13
CreateTable(wordProcessor.Document)
SetColumnWidth(wordProcessor.Document.Tables(0))
WrapTextAroundTable(wordProcessor.Document)
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/SelectionCollection.vb#L96
document.LoadDocument("Documents//SelectionCollection.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
Dim rootTable As DevExpress.XtraRichEdit.API.Native.Table = document.Tables(0)
Dim position10 As DevExpress.XtraRichEdit.API.Native.DocumentPosition = rootTable.Rows(CInt((1))).Cells(CInt((0))).Range.Start
See Also