PdfAcroFormValueFormat.CreateSpecialFormat(PdfAcroFormSpecialFormatType) 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(
PdfAcroFormSpecialFormatType format
)
#Parameters
Name | Type | Description |
---|---|---|
format | Pdf |
An enumeration value that indicates the special format style. |
#Returns
Type | Description |
---|---|
Pdf |
An object that contains the special format. |
#Remarks
The code sample below shows how to create a text box field with a postal code value:
//Create a text box with a postal code value:
var specialBox = new PdfAcroFormTextBoxField("special", 1, new PdfRectangle(10, 120, 100, 150));
specialBox.ValueFormat =
PdfAcroFormValueFormat.CreateSpecialFormat(PdfAcroFormSpecialFormatType.NineDigitZipCode);
specialBox.Text = "3000856";
See Also