iOS Guides | Samples

CoreGraphics.CGSize Structure

Structure containing height and width values.

See Also: CGSize

Syntax

public struct CGSize : IEquatable<CGSize>

Requirements

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

The members of CoreGraphics.CGSize are listed below.

See Also: ValueType

Public Constructors

Initializes a CGSize object from a CGPoint.
Initializes a CGSize object from another CGSize.
Initializes a CGSize with the given width and height.

Public Fields

static readonly
EmptyCGSize. Represents an empty size.

Public Properties

Heightnfloat. The height component of the CGSize.
[read-only]
IsEmptyBoolean. Returns true if the size is empty
Widthnfloat. The Width component of the CGSize.

Public Methods

static
Add(CGSize, CGSize) : CGSize
Adds two CGSize objects and returns the result.
Equals(CGSize) : Boolean
Compares the size with the specified size.
override
Equals(Object) : Boolean
Compares the CGSize with another object.
override
GetHashCode() : Int32
static
Subtract(CGSize, CGSize) : CGSize
ToCGPoint() : CGPoint
Converts the CGSize to a CGPOint.
ToDictionary() : NSDictionary
Serializes a CGSize into an NSDictionary.
ToPointF() : CGPoint
Converts the size to a CGPoint.
ToRoundedCGSize() : CGSize
ToSize() : CGSize
override
ToString() : String
static
TryParse(NSDictionary, out CGSize) : Boolean
Attempts to parse the contents of an NSDictionary with a serialized CGSize into a CGSize.

Public Operators

static
Addition(CGSize, CGSize)Adds two CGSize structures together and returns the result.
static
Equality(CGSize, CGSize)
static
Inequality(CGSize, CGSize)
static
Subtraction(CGSize, CGSize)
static
Conversion to CoreGraphics.CGPoint(Explicit)
static
Conversion to System.Drawing.Size(Explicit)
static
Conversion to System.Drawing.SizeF(Explicit)
static
Conversion to CoreGraphics.CGSize(Implicit)
static
Conversion to CoreGraphics.CGSize(Implicit)