Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfAcroFormValueFormat.CreateSpecialFormat(String) Method

Creates a special format for the form field values.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

#Declaration

public static PdfAcroFormValueFormat CreateSpecialFormat(
    string formatMask
)

#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