HeaderPane
Main
Hide
Share Link
Print

CharIndexPix Method, SftMask Object

Returns the index of the character at a given location.

Syntax

C#int IndexVal = object.CharIndexPix(int XPosPix, int YPosPix);
VB.NETIndexVal = object.CharIndexPix(ByVal XPosPix As Integer, ByVal YPosPix As Integer) As Integer
C++long IndexVal = object->CharIndexPix(long XPosPix, long YPosPix);
CHRESULT object->raw_CharIndexPix(long XPosPix, long YPosPix, long* IndexVal);
VBIndexVal = object.CharIndexPix(ByVal XPosPix As Long, ByVal YPosPix As Long) As Long

object

A SftMask object.

XPosPix

An expression that evaluates to the x coordinate to be tested (in pixels).

YPosPix

An expression that evaluates to the y coordinate to be tested (in pixels).

IndexVal

Returns the index of the character at the coordinates XPosPix, YPosPix.

Comments

The CharIndexPix method returns the index of the character at a given location.

To determine the general area (such as a caption, buttons, etc.), the HitTest method can be used.

See Also SftMask Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.