.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfAcroFormValueFormat.CreateSpecialFormat(String) Method

Creates a special format for the form field values.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v20.1.Core.dll

Declaration

public static PdfAcroFormValueFormat CreateSpecialFormat(
    string formatMask
)
Public Shared Function CreateSpecialFormat(
    formatMask As String
) As PdfAcroFormValueFormat

Parameters

Name Type Description
formatMask String

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

Returns

Type Description
PdfAcroFormValueFormat

An object that contains the special format.

Remarks

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