Skip to main content
All docs
V26.1
  • FormFieldValueFormat.CreateSpecialFormat(String) Method

    Creates a special format for the form field values.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Pdf.v26.1.dll

    Declaration

    public static FormFieldValueFormat CreateSpecialFormat(
        string formatMask
    )

    Parameters

    Name Type Description
    formatMask String

    Specifies what characters can be inserted and how they are displayed.

    Returns

    Type Description
    FormFieldValueFormat

    An object that contains the special format.

    Remarks

    Call the CreateSpecialFormat method overload to specify which types of characters the user can enter, and how the data is displayed in the field. You can use one of the following codes:

    • A - accepts only letters (A–Z, a–z).
    • X - accepts spaces and most printable characters, including all characters available on a standard keyboard and ANSI characters in the ranges of 32–126 and 128–255.
    • O (letter) - accepts alphanumeric characters (A–Z, a–z, and 0–9).
    • 9 - Accepts only numeric characters (0–9).

    For example, a AAA-p#999 format mask accepts the BDF-p#367 input. A OOOOO@XXX format mask accepts the vad12@3Up input.

    See Also