Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

CharIndex Method, SftMask Object

Returns the index of the character at a given location.

Syntax

VB.NETIndexVal = object.CharIndex(ByVal xPos As Single, ByVal yPos As Single) As Integer
VBIndexVal = object.CharIndex(ByVal xPos As Single, ByVal yPos As Single) As Long
C#.NETint IndexVal = object.CharIndex(float xPos, float yPos);
VC++long IndexVal = object->CharIndex(float xPos, float yPos);
CHRESULT object->raw_CharIndex(float xPos, float yPos, long* IndexVal);

object

A SftMask object.

xPos

An expression that evaluates to the x coordinate to be tested. The units used depend on the container used (e.g., Visual Basic uses TWIPS by default, Visual C++ uses pixels).

yPos

An expression that evaluates to the y coordinate to be tested. The units used depend on the container used (e.g., Visual Basic uses TWIPS by default, Visual C++ uses pixels).

IndexVal

Returns the index of the character at the coordinates xPos, yPos.

Comments

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

CharIndexPix can be used if pixel coordinates are desired.

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 08/13/2020 - (email)
© 2024 Softel vdm, Inc.