.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfAcroFormValueFormat.CreateSpecialFormat(PdfAcroFormSpecialFormatType) Method

Creates a special format for the form field values.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v20.1.Core.dll

Declaration

public static PdfAcroFormValueFormat CreateSpecialFormat(
    PdfAcroFormSpecialFormatType format
)
Public Shared Function CreateSpecialFormat(
    format As PdfAcroFormSpecialFormatType
) As PdfAcroFormValueFormat

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