Spread Windows Forms 6.0 Product Documentation
GetFormatStringAtPos Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > IManageFmtInput Interface : GetFormatStringAtPos Method


currText
Current text string
position
Position index

Glossary Item Box

Returns the format string for the field at the specified position in the given text.

Syntax

Visual Basic (Declaration) 
Function GetFormatStringAtPos( _
   ByVal currText As String, _
   ByVal position As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As IManageFmtInput
Dim currText As String
Dim position As Integer
Dim value As String
 
value = instance.GetFormatStringAtPos(currText, position)
C# 
string GetFormatStringAtPos( 
   string currText,
   int position
)

Parameters

currText
Current text string
position
Position index

Remarks

Example: Format String: "d/mm/yy", currText: "25/12/02" position: 3. This method will return "mm". Returns "" if bad position. If at a literal position, then the char at that position, preceded with a backslash, is returned ("\c" where 'c' is the actual char).

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.