FormEditor.SetFieldAlignment

FormEditor.SetFieldAlignment method

Set the alignment style of a text field.

public bool SetFieldAlignment(string fieldName, int alignment)
ParameterTypeDescription
fieldNameStringThe qualified field name.
alignmentInt32The 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