Search Results for

    Show / Hide Table of Contents

    Class NetMaskedTextProvider

    .Net MaskedTextProvider Provider for TextValidateField.

    Wrapper around MaskedTextProvider

    Masking elements

    Inheritance
    System.Object
    NetMaskedTextProvider
    Implements
    ITextValidateProvider
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Terminal.Gui.TextValidateProviders
    Assembly: Terminal.Gui.dll
    Syntax
    public class NetMaskedTextProvider : ITextValidateProvider

    Constructors

    | Improve this Doc View Source

    NetMaskedTextProvider(String)

    Empty Constructor
    Declaration
    public NetMaskedTextProvider(string mask)
    Parameters
    Type Name Description
    System.String mask

    Properties

    | Improve this Doc View Source

    DisplayText

    Gets the formatted string for display.
    Declaration
    public ustring DisplayText { get; }
    Property Value
    Type Description
    ustring
    | Improve this Doc View Source

    Fixed

    Set that this provider uses a fixed width. e.g. Masked ones are fixed.
    Declaration
    public bool Fixed { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsValid

    True if the input is valid, otherwise false.
    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Mask

    Mask property
    Declaration
    public ustring Mask { get; set; }
    Property Value
    Type Description
    ustring
    | Improve this Doc View Source

    Text

    Set the input text and get the current value.
    Declaration
    public ustring Text { get; set; }
    Property Value
    Type Description
    ustring

    Methods

    | Improve this Doc View Source

    Cursor(Int32)

    Set Cursor position to pos.
    Declaration
    public int Cursor(int pos)
    Parameters
    Type Name Description
    System.Int32 pos
    Returns
    Type Description
    System.Int32 Return first valid position.
    | Improve this Doc View Source

    CursorEnd()

    Find the last valid character position.
    Declaration
    public int CursorEnd()
    Returns
    Type Description
    System.Int32 New cursor position.
    | Improve this Doc View Source

    CursorLeft(Int32)

    First valid position before pos.
    Declaration
    public int CursorLeft(int pos)
    Parameters
    Type Name Description
    System.Int32 pos
    Returns
    Type Description
    System.Int32 New cursor position if any, otherwise returns pos
    | Improve this Doc View Source

    CursorRight(Int32)

    First valid position after pos.
    Declaration
    public int CursorRight(int pos)
    Parameters
    Type Name Description
    System.Int32 pos Current position.
    Returns
    Type Description
    System.Int32 New cursor position if any, otherwise returns pos
    | Improve this Doc View Source

    CursorStart()

    Find the first valid character position.
    Declaration
    public int CursorStart()
    Returns
    Type Description
    System.Int32 New cursor position.
    | Improve this Doc View Source

    Delete(Int32)

    Deletes the current character in pos.
    Declaration
    public bool Delete(int pos)
    Parameters
    Type Name Description
    System.Int32 pos
    Returns
    Type Description
    System.Boolean true if the character was successfully removed, otherwise false.
    | Improve this Doc View Source

    InsertAt(Char, Int32)

    Insert character ch in position pos.
    Declaration
    public bool InsertAt(char ch, int pos)
    Parameters
    Type Name Description
    System.Char ch
    System.Int32 pos
    Returns
    Type Description
    System.Boolean true if the character was successfully inserted, otherwise false.

    Implements

    ITextValidateProvider
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX