Margins

Vue de l’ensemble

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

Marges de page dans les unités d’imprimante/décran, utilisées par l’API d’impression C# (Aspose.Pdf.Devices.Margins) pour {@code PageSettings.Margins} et {_code PrinterSetting.DefaultPageSettes.

Cette classe fournit 13 méthodes pour travailler avec les objets Margins dans des programmes Java. Les méthodologies disponibles comprennent: ‘Margins’, ’equals’, getBottom', ‘getLeft’, 'getRight', ’getTop', ‚hashCode, ‘setBotton’, ‘‘setLight , ' setRighte', ‘’setTop et toString. 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 : ‘bottom ; 'left; ‘right’ ; top .

Propriétés

NameTypeAccessDescription
leftintRead@return the left margin
rightintRead@return the right margin
topintRead@return the top margin
bottomintRead@return the bottom margin

méthodes

SignatureDescription
Margins()Creates margins of zero on every side.
Margins(left: int, right: int, top: int, bottom: int)Creates margins with the given side widths (in device units).
getLeft()int@return the left margin
setLeft(left: int)Sets the left margin.
getRight()int@return the right margin
setRight(right: int)Sets the right margin.
getTop()int@return the top margin
setTop(top: int)Sets the top margin.
getBottom()int@return the bottom margin
setBottom(bottom: int)Sets the bottom margin.
toString()String
equals(o: Object)boolean
hashCode()int

Voir aussi

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