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
Calculates the caret location for insertion.
VB.NET | ClosestPos = object.GetInsertPosition(ByVal Pos As Integer, ByVal GoingRight As Boolean) As Integer |
VB | ClosestPos = object.GetInsertPosition(ByVal Pos As Long, ByVal GoingRight As Boolean) As Long |
C#.NET | int ClosestPos = object.GetInsertPosition(int Pos, bool GoingRight); |
VC++ | long ClosestPos = object->GetInsertPosition(long Pos, VARIANT_BOOL GoingRight); |
C | HRESULT object->raw_GetInsertPosition(long Pos, VARIANT_BOOL GoingRight, long* ClosestPos); |
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.
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