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

SubDocument.GetParagraph(DocumentPosition) Method

OBSOLETE

This method has become obsolete. Use the 'Get' method instead.

Gets the paragraph encompassing the specified position.

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.ReadOnlyParagraphCollection.Get(DocumentPosition pos)' method instead.")]
Paragraph GetParagraph(
    DocumentPosition pos
)

Parameters

Name Type Description
pos DocumentPosition

A DocumentPosition instance representing the position in the document.

Returns

Type Description
Paragraph

A Paragraph object representing the paragraph containing the position.

Remarks

Use the ReadOnlyParagraphCollection.Get method (can be accessed using the RichEditControl.Document.Paragraphs.Get notation) instead of GetParagraph method to get the paragraph encompassing the specified position.

See Also