|
|
|
SftMask.CharIndex Method |
Returns the index of the character at a given location.
Syntax
VB.NET |
IndexVal = object.CharIndex(ByVal xPos As Single, ByVal yPos As Single) As Integer |
||
VB |
IndexVal = object.CharIndex(ByVal xPos As Single, ByVal yPos As Single) As Long |
||
C#.NET |
int IndexVal = object.CharIndex(float xPos, float yPos); |
||
VC++ |
long IndexVal = object->CharIndex(float xPos, float yPos); |
||
C |
HRESULT object->raw_CharIndex(float xPos, float yPos, long* IndexVal); |
||
Delphi |
IndexVal := object.CharIndex(xPos : Single; yPos : Single) : Integer; |
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.