SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the position of a range of characters.
VB.NET | object.CharPos(ByVal Start As Integer, ByVal End As Integer, ByRef xPosStart As Single, ByRef xPosEnd As Single, ByRef yPosTop As Single, ByRef yPosBottom As Single) |
VB | object.CharPos(ByVal Start As Long, ByVal End As Long, xPosStart As Single, xPosEnd As Single, yPosTop As Single, yPosBottom As Single) |
C#.NET | void object.CharPos(int Start, int End, out float xPosStart, out float xPosEnd, out float yPosTop, out float yPosBottom); |
VC++ | HRESULT object->CharPos(long Start, long End, float* xPosStart, float* xPosEnd, float* yPosTop, float* yPosBottom); |
C | HRESULT object->raw_CharPos(long Start, long End, float* xPosStart, float* xPosEnd, float* yPosTop, float* yPosBottom); |
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).
The CharPos 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