DocumentPosition Class
Represents a position within a document.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v14.2.Core.dll
#Declaration
#Returned By
Properties and methods that return DocumentPosition instances:
#Remarks
To get the current positon of a text cursor (caret) in a document, use the Document.CaretPosition property. To convert mouse coordinates to a document position, the RichEditControl.GetPositionFromPoint method is provided.
A DocumentRange object is defined by its DocumentRange.Start and DocumentRange.End positions.
Use the SubDocument.CreatePosition method to obtain an arbitrary position in a document. To convert a DocumentPosition object to an integer position, call the DocumentPosition.ToInt method.