FormFieldFacade

Vue de l’ensemble

‘FormFieldFacade’ est une classe dans Aspose.PDF FOSS pour Java.

La facade de style visuel s’applique aux champs créés via {@link FormEditor#addField(FielType, String, string , int, double, double, Double)}.

Cette classe fournit 18 méthodes pour travailler avec des objets FormFieldFacade dans les programmes Java. Les méthodologies disponibles comprennent: ‘FormFielFacad’, ‘getAlignment’, getBackgroundColor', ‘getRoverColore’, 'gettBorderStyle', ’getFontName', ‚getTexteColors', ''setAlyngment' , 'setBacksgroudColores', et 6 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.PDF FOSS pour le package Java Propriétés: BordSyleBeveled, StickDash, ‘StockSkyleSnyle, insolideSry, InsoldeSony, StyckLine, plus de 7’Underline.

Propriétés

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.

méthodes

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.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français