.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

RichEditView.GetCursorBounds() Method

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

Namespace: DevExpress.XtraRichEdit

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

Declaration

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

Returns

Type Description
Rectangle

The rectangle encompassing the caret measured in DocumentLayoutUnit.Pixel

Returns

Type Description
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