Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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