SizeF Structure

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

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public struct SizeF

The SizeF type exposes the following members.

Constructors
  NameDescription
Public methodSizeF(PointF)
Initializes a new instance of the SizeF struct.
Public methodSizeF(SizeF)
Initializes a new instance of the SizeF struct.
Public methodSizeF(Single, Single)
Initializes a new instance of the SizeF structure from the specified dimensions.
Properties
  NameDescription
Public propertyHeight
Gets or sets the vertical component of this SizeF structure.
Public propertyIsEmpty
Gets a value indicating whether this SizeF structure has zero width and height.
Public propertyWidth
Gets or sets the horizontal component of this SizeF structure.
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 structure with the same dimensions as this SizeF structure.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this SizeF 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 structure to a PointF structure.
Public methodToSize
Converts a SizeF structure to a Size structure.
Public methodToString
Creates a human-readable string that represents this SizeF structure.
(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 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.
Fields
  NameDescription
Public fieldStatic memberEmpty
Gets a SizeF structure that has a Height and Width value of 0.
See Also