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
| Name | Type | Access | Description |
|---|---|---|---|
backgroundColor | Color | Read | Returns the field background colour, or {@code null} when unset. |
borderColor | Color | Read | Returns the field border colour, or {@code null} when unset. |
borderStyle | int | Read | Returns the border style — one of {@code BorderStyle*} constants. |
borderWidth | double | Read | Returns the border width. |
fontName | String | Read | Returns the font name (e.g. |
fontSize | double | Read | Returns the font size. |
textColor | Color | Read | Returns the text colour. |
alignment | String | Read | Returns the text alignment hint (e.g. |
BorderStyleSolid | int | Read | Solid border style — single line of constant width. |
BorderStyleDashed | int | Read | Dashed border. |
BorderStyleBeveled | int | Read | Beveled border (3D raised look). |
BorderStyleInset | int | Read | Inset border (3D pressed look). |
BorderStyleUnderline | int | Read | Underline-only border. |
méthodes
| Signature | Description |
|---|---|
FormFieldFacade() | Creates an empty facade. |
getBackgroundColor() → Color | Returns 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() → Color | Returns the field border colour, or {@code null} when unset. |
setBorderColor(color: Color) | Sets the field border colour. |
getBorderStyle() → int | Returns the border style — one of {@code BorderStyle*} constants. |
setBorderStyle(style: int) | Sets the border style — one of {@code BorderStyle*} constants. |
getBorderWidth() → double | Returns the border width. |
setBorderWidth(width: double) | Sets the border width. |
getFontName() → String | Returns the font name (e.g. |
setFontName(name: String) | Sets the font name. |
getFontSize() → double | Returns the font size. |
setFontSize(size: double) | Sets the font size. |
getTextColor() → Color | Returns the text colour. |
setTextColor(color: Color) | Sets the text colour. |
getAlignment() → String | Returns the text alignment hint (e.g. |
setAlignment(alignment: String) | Sets the text alignment hint. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise