Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / IManageFmtInput Interface / GetFormatStringAtPos Method
Current text string
Position index

In This Topic
    GetFormatStringAtPos Method
    In This Topic
    Returns the format string for the field at the specified position in the given text.
    Function GetFormatStringAtPos( _
       ByVal currText As String, _
       ByVal position As Integer _
    ) As String
    Dim instance As IManageFmtInput
    Dim currText As String
    Dim position As Integer
    Dim value As String
    value = instance.GetFormatStringAtPos(currText, position)
    string GetFormatStringAtPos( 
       string currText,
       int position


    Current text string
    Position index
    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).
    See Also