Skip to main content
A newer version of this page is available.
All docs
V18.2

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.v18.2.Core.dll

Declaration

[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.TableCollection.GetTableCell(DocumentPosition pos)' method instead.")]
TableCell GetTableCell(
    DocumentPosition pos
)

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.

See Also