Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

CharPosV Method, SftMask Object

Returns the position of a range of characters.

Syntax

VB.NETobject.CharPosV(ByVal Start As Integer, ByVal End As Integer, ByRef xPosStart As Object, ByRef xPosEnd As Object, ByRef yPosTop As Object, ByRef yPosBottom As Object)
VBobject.CharPosV(ByVal Start As Long, ByVal End As Long, xPosStart As Variant, xPosEnd As Variant, yPosTop As Variant, yPosBottom As Variant)
C#.NETvoid object.CharPosV(int Start, int End, out object xPosStart, out object xPosEnd, out object yPosTop, out object yPosBottom);
VC++HRESULT object->CharPosV(long Start, long End, const _variant_t&* xPosStart, const _variant_t&* xPosEnd, const _variant_t&* yPosTop, const _variant_t&* yPosBottom);
CHRESULT object->raw_CharPosV(long Start, long End, VARIANT* xPosStart, VARIANT* xPosEnd, VARIANT* yPosTop, VARIANT* yPosBottom);

object

A SftMask object.

Start

The index of the first character whose position is to be determined. Start and End describe the range of characters.

End

The index of the last character whose position is to be determined. Start and End describe the range of characters.

xPosStart

Returns the horizontal starting position of the character(s), relative to the top, left corner of the control. The units used depend on the container used (e.g., Visual Basic uses TWIPS by default, Visual C++ uses pixels).

xPosEnd

Returns the horizontal ending position of the character(s), relative to the top, left corner of the control. The units used depend on the container used (e.g., Visual Basic uses TWIPS by default, Visual C++ uses pixels).

yPosTop

Returns the vertical starting position of the character(s), relative to the top, left corner of the control. The units used depend on the container used (e.g., Visual Basic uses TWIPS by default, Visual C++ uses pixels).

yPosBottom

Returns the vertical ending position of the character(s), relative to the top, left corner of the control. The units used depend on the container used (e.g., Visual Basic uses TWIPS by default, Visual C++ uses pixels).

Comments

The CharPosV method returns the position of a range of characters.

To retrieve the location of a range of characters, specify Start and End as the index of the first and last character to be included. To retrieve the location of one single character, both Start and End define the same index.

CharPosPix can be used if pixel coordinates are desired.

CharPosV is used for languages such as VBScript, which are limited by requiring Variant arguments and do not support strongly typed arguments for return values. For more information please see Using SftMask/OCX with Internet Explorer.

See Also SftMask Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.