ComponentOne Xamarin.iOS Documentation
Controls / Input / MaskedTextField / Mask Symbols
In This Topic
    Mask Symbols
    In This Topic

    The C1MaskedTextField control provides an editable mask that supports a set of special mask characters/symbols. These characters are used to specify the format in which the data should be entered in an text field. For this, all you need to do is use the Mask property to specify the data format.

    For example, setting the Mask property for a C1MaskedTextField control to "90/90/0000" lets users enter date in international date format. Here, the "/" character works as a logical date separator.

    The following table enlists mask symbols supported by the C1MaskedTextField control.

    Mask Symbol Description
    0 Digit
    9 Digit or space
    # Digit, sign, or space
    L Letter
    ? Letter, optional
    C Character, optional
    & Character, required
    I Letter or space
    A Alphanumeric
    a Alphanumeric or space
    . Localized decimal point
    , Localized thousand separator
    : Localized time separator
    / Localized date separator
    $ Localized currency symbol
    < Converts characters that follow to lowercase
    > Converts characters that follow to uppercase
    | Disables case conversion
    \ Escapes any character, turning it into a literal
    All others Literals