SubDocument.GetTableCell(DocumentPosition) Method
OBSOLETE
This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.TableCollection.GetTableCell(DocumentPosition pos)' method instead.
Gets a table cell in which the specified position is located.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v19.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
pos | DocumentPosition | A DocumentPosition object that is a position within the document. |
Returns
Type | Description |
---|---|
TableCell | A TableCell interface specifying the table cell to which the specified position belongs. |
Remarks
If the specified position is inside nested tables, the GetTableCell method returns the innermost cell.
If you operate with a selection range, the GetTableCell method should be enclosed within a DocumentRange.BeginUpdateDocument - DocumentRange.EndUpdateDocument method pair. Otherwise, an incorrect document model might be selected, resulting in an exception “Error: specified document position or range belongs to other document or subdocument” being thrown.