Simeon

Vue de l’ensemble

‘SizeF’ est une classe dans Aspose.Slides FOSS pour Java.

Il représente une taille 2D avec des dimensions flottantes.

Cette classe fournit 12 méthodes pour travailler avec des objets SizeF dans les programmes Java. Les méthodologies disponibles comprennent: SizeF, add , ’equals;getHeight; getWidth : hashCode ; 'isEmpty ؛ setHeigh . Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.Slides FOSS pour le package Java . Propriétés : EMPTY et empty.

Propriétés

NameTypeAccessDescription
widthfloatReadGets the width.
heightfloatReadGets the height.
emptybooleanReadReturns {@code true} if both dimensions are zero.
EMPTYSizeFReadEmpty size with dimensions (0, 0).

méthodes

SignatureDescription
SizeF(width: float, height: float)Initializes a new instance of SizeF with the specified dimensions.
SizeF()Initializes a new instance of SizeF with dimensions (0, 0).
getWidth()floatGets the width.
setWidth(width: float)Sets the width.
getHeight()floatGets the height.
setHeight(height: float)Sets the height.
isEmpty()booleanReturns {@code true} if both dimensions are zero.
add(a: SizeF, b: SizeF)SizeFAdds two sizes component-wise.
toSize()SizeConverts this SizeF to a Size by truncating to integer dimensions.
equals(obj: Object)boolean
hashCode()intReturns a hash code based on the size’s dimensions
toString()String

Voir aussi

  • Aspose.Slides - référence API d’entreprise
 Français