HeaderPane
Main
Hide
Share Link
Print

GetInsertPosition Method, SftMask Object

Calculates the caret location for insertion.

Syntax

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

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 11/03/2026 - (email)
© 2026 Softel vdm, Inc.