Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

PdfAcroFormValueFormat.CreateSpecialFormat(PdfAcroFormSpecialFormatType) Method

Creates a special format for the form field values.

Namespace: DevExpress.Pdf

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

Declaration

public static PdfAcroFormValueFormat CreateSpecialFormat(
    PdfAcroFormSpecialFormatType format
)

Parameters

Name Type Description
format PdfAcroFormSpecialFormatType

An enumeration value that indicates the special format style.

Returns

Type Description
PdfAcroFormValueFormat

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