Back to Devexpress

RichEditView.GetCursorBounds() Method

officefileapi-devexpress-dot-xtrarichedit-dot-richeditview-28b37d1f.md

latest2.1 KB
Original Source

RichEditView.GetCursorBounds() Method

Gets the caret coordinates in the current document’s view.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public virtual Rectangle GetCursorBounds()
vb
Public Overridable Function GetCursorBounds As Rectangle

Returns

TypeDescription
Rectangle

The rectangle encompassing the caret measured in DocumentLayoutUnit.Pixel

|

Remarks

Use the GetCursorBounds method to determine the caret location and dimensions of the character box encompassing the caret in the current view. This may be useful for custom drawing on the document.

To calculate the DocumentPosition for a given point, and vice versa, use the RichEditControl.GetPositionFromPoint and the RichEditControl.GetBoundsFromPosition methods.

See Also

GetBoundsFromPosition(DocumentPosition)

GetPositionFromPoint(PointF)

RichEditView Class

RichEditView Members

DevExpress.XtraRichEdit Namespace