FormFieldFacade

FormFieldFacade

Overview

FormFieldFacade is a class in Aspose.Pdf FOSS for Java.

Visual-style facade applied to fields created via {@link FormEditor#addField(FieldType, String, String, int, double, double, double, double)}.

Properties

NameTypeAccessDescription
backgroundColorColorReadReturns the field background colour, or {@code null} when unset.
borderColorColorReadReturns the field border colour, or {@code null} when unset.
borderStyleintReadReturns the border style — one of {@code BorderStyle*} constants.
borderWidthdoubleReadReturns the border width.
fontNameStringReadReturns the font name (e.g.
fontSizedoubleReadReturns the font size.
textColorColorReadReturns the text colour.
alignmentStringReadReturns the text alignment hint (e.g.
BorderStyleSolidintReadSolid border style — single line of constant width.
BorderStyleDashedintReadDashed border.
BorderStyleBeveledintReadBeveled border (3D raised look).
BorderStyleInsetintReadInset border (3D pressed look).
BorderStyleUnderlineintReadUnderline-only border.

Methods

SignatureDescription
FormFieldFacade()Creates an empty facade.
getBackgroundColor()ColorReturns the field background colour, or {@code null} when unset.
setBackgroundColor(color: Color)Sets the field background colour.
setBackgroudColor(color: Color)Mirrors the C# property name {@code BackgroudColor} (note the typo in the
original .NET API — Aspose preserves it for backward compatibility).
getBorderColor()ColorReturns the field border colour, or {@code null} when unset.
setBorderColor(color: Color)Sets the field border colour.
getBorderStyle()intReturns the border style — one of {@code BorderStyle*} constants.
setBorderStyle(style: int)Sets the border style — one of {@code BorderStyle*} constants.
getBorderWidth()doubleReturns the border width.
setBorderWidth(width: double)Sets the border width.
getFontName()StringReturns the font name (e.g.
setFontName(name: String)Sets the font name.
getFontSize()doubleReturns the font size.
setFontSize(size: double)Sets the font size.
getTextColor()ColorReturns the text colour.
setTextColor(color: Color)Sets the text colour.
getAlignment()StringReturns the text alignment hint (e.g.
setAlignment(alignment: String)Sets the text alignment hint.

See Also