FormEditorSetFieldAlignment Method
Set the alignment style of a text field.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public bool SetFieldAlignment(
	string fieldName,
	int alignment
)

Parameters

fieldName
Type: SystemString
The qualified field name.
alignment
Type: SystemInt32
The alignment style definition, including FormFieldFacade.AlignLeft, FormFieldFacade.AlignCenter and FormFieldFacade.AlignRight.

Return Value

Type: Boolean
true if true if field was found and alignment was set.
Examples
C#
FormEditor fe = new FormEditor("PdfStaticForm.pdf", "VerticalAlign.pdf");
fe.SetFieldAlignment("form1[0].TextField[0]", FormFieldFacade.AlignLeft);
See Also