Skip to main content
All docs
V23.2

TextEdit.GetPositionFromCharIndex(Int32) Method

Retrieves a point (relative to the control’s top left corner) at which the specified character is displayed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual Point GetPositionFromCharIndex(
    int index
)

Parameters

Name Type Description
index Int32

The index of the character for which to retrieve the location.

Returns

Type Description
Point

The character’s location relative to the control’s top left corner.

Remarks

The GetPositionFromCharIndex method allows you to determine where in the control a specific character index is located. For example, you can get coordinates of a specific character, and then display a context menu.

See Also