SizeF Structure
Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.

Namespace: Aspose.PSD
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 23.4
Syntax
[SerializableAttribute]
public struct SizeF

The SizeF type exposes the following members.

Constructors
  NameDescription
Public methodSizeF(PointF)
Initializes a new instance of the SizeF structure from the specified PointF.
Public methodSizeF(SizeF)
Initializes a new instance of the SizeF structure from the specified SizeF.
Public methodSizeF(Single, Single)
Initializes a new instance of the SizeF structure from the specified dimensions.
Properties
  NameDescription
Public propertyStatic memberEmpty
Gets a new instance of the SizeF structure that has Width and Height values set to zero.
Public propertyHeight
Gets or sets the vertical component of this SizeF.
Public propertyIsEmpty
Gets a value indicating whether this SizeF has zero width and height.
Public propertyWidth
Gets or sets the horizontal component of this SizeF.
Methods
  NameDescription
Public methodStatic memberAdd
Adds the width and height of one SizeF structure to the width and height of another SizeF structure.
Public methodEquals
Tests to see whether the specified object is a SizeF with the same dimensions as this SizeF.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this Size structure.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberSubtract
Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure.
Public methodToPointF
Converts a SizeF to a PointF.
Public methodToSize
Converts a SizeF to a Size structure with truncated size values.
Public methodToString
Creates a human-readable string that represents this SizeF.
(Overrides ValueTypeToString.)
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the width and height of one SizeF structure to the width and height of another SizeF structure.
Public operatorStatic memberEquality
Tests whether two SizeF structures are equal.
Public operatorStatic member(SizeF to PointF)
Converts the specified SizeF to a PointF.
Public operatorStatic memberInequality
Tests whether two SizeF structures are different.
Public operatorStatic memberSubtraction
Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure.
See Also