Skip to main content

PdfAcroFormValueFormat.CreateSpecialFormat(String) Method

Creates a special format for the form field values.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v23.2.Core.dll

NuGet Package: DevExpress.Pdf.Core


public static PdfAcroFormValueFormat CreateSpecialFormat(
    string formatMask


Name Type Description
formatMask String

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


Type Description

An object that contains the special format.


Call this 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