Skip to main content
A newer version of this page is available. .
All docs
V21.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.v21.2.dll

NuGet Packages: DevExpress.Win.Design, 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