SetFieldAlignment

FormEditor.SetFieldAlignment method

Set the alignment style of a text field.

public bool SetFieldAlignment(string fieldName, int alignment)
Parameter Type Description
fieldName String The qualified field name.
alignment Int32 The alignment style definition, including FormFieldFacade.AlignLeft, FormFieldFacade.AlignCenter and FormFieldFacade.AlignRight.

Return Value

true if true if field was found and alignment was set.

Examples

FormEditor fe = new FormEditor("PdfStaticForm.pdf", "VerticalAlign.pdf");
fe.SetFieldAlignment("form1[0].TextField[0]", FormFieldFacade.AlignLeft);

See Also