Skip to main content

PdfAcroFormValueFormat.CreateSpecialFormat(PdfAcroFormSpecialFormatType) Method

Creates a special format for the form field values.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

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