iOS Guides | Samples

System.Drawing.SizeF Structure

A two-dimensional size, whose dimensions are specified with single-precision floating-point numbers.

See Also: SizeF

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public struct SizeF

Requirements

Namespace: System.Drawing
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of System.Drawing.SizeF are listed below.

See Also: ValueType

Public Constructors

Initializes a new instance of the SizeF structure from the specified PointF structure.

Initializes a new instance of the SizeF structure from the specified existing SizeF structure.

Initializes a new instance of the SizeF structure from the specified dimensions.

Public Fields

static readonly
EmptySizeF.

Gets a SizeF structure that has a SizeF.Height and SizeF.Width value of 0.

Public Properties

HeightSingle.

Gets or sets the vertical component of this SizeF structure.

[read-only]
IsEmptyBoolean.

Gets a value that indicates whether this SizeF structure has zero width and height.

WidthSingle.

Gets or sets the horizontal component of this SizeF structure.

Public Methods

static
Add(SizeF, SizeF) : SizeF

Adds the width and height of one SizeF structure to the width and height of another SizeF structure.

override
Equals(Object) : Boolean

Tests to see whether the specified object is a SizeF structure with the same dimensions as this SizeF structure.

override
GetHashCode() : Int32

Returns a hash code for this Size structure.

static
Subtract(SizeF, SizeF) : SizeF

Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure.

ToPointF() : PointF

Converts a SizeF structure to a PointF structure.

ToSize() : Size

Converts a SizeF structure to a Size structure.

override
ToString() : String

Creates a human-readable string that represents this SizeF structure.

Public Operators

static
Addition(SizeF, SizeF)

Adds the width and height of one SizeF structure to the width and height of another SizeF structure.

static
Equality(SizeF, SizeF)

Tests whether two SizeF structures are equal.

static
Inequality(SizeF, SizeF)

Tests whether two SizeF structures are different.

static
Subtraction(SizeF, SizeF)

Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure.

static
Conversion to System.Drawing.PointF(Explicit)