PdfAcroFormValueFormat.CreateSpecialFormat(String) Method
In This Article
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 |
---|---|---|
format |
String | Specifies what characters can be inserted and how they are displayed. |
#Returns
Type | Description |
---|---|
Pdf |
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