Click or drag to resize

SizeF Structure

Represents a floating point size with width and height components

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public struct SizeF : IEquatable<SizeF>

The SizeF type exposes the following members.

Constructors
  NameDescription
Public methodSizeF(PointF)
Initializes a new SizeF class with width and height corresponding to the X and Y of the specified point
Public methodSizeF(Single, Single)
Initializes a new SizeF class with the specified width and height
Top
Properties
  NameDescription
Public propertyHeight
Gets or sets the height
Public propertyIsEmpty
Gets a value indicating that either the Width or Height are zero
Public propertyIsZero
Gets a value indicating that both the Width and Height are zero
Public propertyWidth
Gets or sets the width
Top
Methods
  NameDescription
Public methodStatic memberAbs
Returns the absolute width and height of the specified size
Public methodContains(PointF)
Gets a value indicating that the specified point is within the Width and Height of this size
Public methodContains(Single, Single)
Gets a value indicating that the specified x and y values are within the Width and Height of this size
Public methodEquals(Object)
Compares this size to the specified obj
(Overrides ValueTypeEquals(Object).)
Public methodEquals(SizeF)
Compares this size to the other size
Public methodFitTo
Fits this size to the specified constraint, keeping the aspect
Public methodGetHashCode
Gets the hash code for this Size
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberMax
Returns the maximum width and height of two sizes
Public methodStatic memberMin
Returns the minimum width and height of two sizes
Public methodToString
Converts this Size struct to a string
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition(SizeF, SizeF)
Adds the Width and Height values of two sizes together
Public operatorStatic memberAddition(SizeF, Single)
Adds a value to the Width and Height of the specified size
Public operatorStatic memberDivision(SizeF, SizeF)
Divides the Width and Height of two sizes
Public operatorStatic memberDivision(SizeF, Single)
Divides the Width and Height of a size by the specified factor
Public operatorStatic memberEquality
Compares two sizes for equality
Public operatorStatic member(PointF to SizeF)
Explicit conversion from a point to a Size with a Width and Height of the X and Y values of the point, respectively
Public operatorStatic member(Size to SizeF)
Implicitly converts the specified integral size to a floating point SizeF
Public operatorStatic memberInequality
Compares two sizes for inequality
Public operatorStatic memberMultiply(Single, SizeF)
Multiplies the Width and Height of a size by the specified factor
Public operatorStatic memberMultiply(SizeF, SizeF)
Multiplies the Width and Height of two sizes
Public operatorStatic memberMultiply(SizeF, Single)
Multiplies the Width and Height of a size by the specified factor
Public operatorStatic memberSubtraction(SizeF, SizeF)
Subtracts the Width and Height value of one size from another
Public operatorStatic memberSubtraction(SizeF, Single)
Subtracts a value from the Width and Height of the specified size
Public operatorStatic memberUnaryNegation
Negates the Width and Height of the specified size value
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
Gets an empty size with a zero width and height
Public fieldStatic memberMaxValue
SizeF with width and height with a maximum float value
Public fieldStatic memberMinValue
SizeF with width and height with a minimum float value
Public fieldStatic memberNegativeInfinity
A SizeF with the width and height set to float.NegativeInfinity
Public fieldStatic memberPositiveInfinity
A SizeF with the width and height set to float.PositiveInfinity
Top
See Also