Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfAcroFormValueFormat.CreateSpecialFormat(PdfAcroFormSpecialFormatType) Method

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 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