Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

GetInsertPosition Method, SftMask Object

Calculates the caret location for insertion.

Syntax

VB.NETClosestPos = object.GetInsertPosition(ByVal Pos As Integer, ByVal GoingRight As Boolean) As Integer
VBClosestPos = object.GetInsertPosition(ByVal Pos As Long, ByVal GoingRight As Boolean) As Long
C#.NETint ClosestPos = object.GetInsertPosition(int Pos, bool GoingRight);
VC++long ClosestPos = object->GetInsertPosition(long Pos, VARIANT_BOOL GoingRight);
CHRESULT object->raw_GetInsertPosition(long Pos, VARIANT_BOOL GoingRight, long* ClosestPos);

object

A SftMask object.

Pos

The index of the character whose nearest valid insertion position is to be determined.

GoingRight

Set to True to locate the nearest valid position moving towards the end of the control contents, otherwise set to False to locate the nearest valid position moving towards the beginning of the control contents

ClosestPos

Returns the nearest character index suitable for insertion.

Comments

The GetInsertPosition method calculates the caret location for insertion.

This method is automatically used during OLE drag & drop processing and is only needed if an application implements its own drag & drop processing.

See Also SftMask Object | Object Hierarchy


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