SftMask/OCX 6.5

SftMask.CharPosPix Method

Softel vdm, Inc.

Returns the position of a range of characters.

Syntax       

VB.NET

object.CharPosPix(ByVal Start As Integer, ByVal End As Integer, ByRef xPosStartPix As Integer, ByRef xPosEndPix As Integer, ByRef yPosTopPix As Integer, ByRef yPosBottomPix As Integer)

VB

object.CharPosPix(ByVal Start As Long, ByVal End As Long, xPosStartPix As Long, xPosEndPix As Long, yPosTopPix As Long, yPosBottomPix As Long)

C#.NET

void object.CharPosPix(int Start, int End, out int xPosStartPix, out int xPosEndPix, out int yPosTopPix, out int yPosBottomPix);

VC++

HRESULT object->CharPosPix(long Start, long End, long* xPosStartPix, long* xPosEndPix, long* yPosTopPix, long* yPosBottomPix);

C

HRESULT object->raw_CharPosPix(long Start, long End, long* xPosStartPix, long* xPosEndPix, long* yPosTopPix, long* yPosBottomPix);

Delphi

procedure object.CharPosPix(Start : Integer, End : Integer, out xPosStartPix : Integer, out xPosEndPix : Integer, out yPosTopPix : Integer, out yPosBottomPix : Integer);

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.

xPosStartPix

Returns the horizontal starting position of the character(s), relative to the top, left corner of the control (in pixels).

xPosEndPix

Returns the horizontal ending position of the character(s), relative to the top, left corner of the control (in pixels).

yPosTopPix

Returns the vertical starting position of the character(s), relative to the top, left corner of the control (in pixels).

yPosBottomPix

Returns the vertical ending position of the character(s), relative to the top, left corner of the control (in pixels).

Comments

The CharPosPix 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.

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.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com