CGSize CGSize Struct

Definition

Structure containing height and width values.

[System.Serializable]
public struct CGSize : IEquatable<CoreGraphics.CGSize>
type CGSize = struct
Inheritance
CGSizeCGSize
Attributes
Implements

Constructors

CGSize(CGPoint) CGSize(CGPoint)

Initializes a CGSize object from a CGPoint.

CGSize(CGSize) CGSize(CGSize)

Initializes a CGSize object from another CGSize.

CGSize(Double, Double) CGSize(Double, Double)
CGSize(nfloat, nfloat) CGSize(nfloat, nfloat)

Initializes a CGSize with the given width and height.

CGSize(Single, Single) CGSize(Single, Single)

Fields

Empty Empty

Represents an empty size.

Properties

Height Height

The height component of the CGSize.

IsEmpty IsEmpty

Returns true if the size is empty

Width Width

The Width component of the CGSize.

Methods

Add(CGSize, CGSize) Add(CGSize, CGSize)

Adds two CGSize objects and returns the result.

Equals(CGSize) Equals(CGSize)

Compares the size with the specified size.

Equals(Object) Equals(Object)

Compares the CGSize with another object.

GetHashCode() GetHashCode()
Subtract(CGSize, CGSize) Subtract(CGSize, CGSize)
ToCGPoint() ToCGPoint()

Converts the CGSize to a CGPOint.

ToDictionary() ToDictionary()

Serializes a CGSize into anĀ NSDictionary.

ToPointF() ToPointF()

Converts the size to a CGPoint.

ToRoundedCGSize() ToRoundedCGSize()
ToSize() ToSize()
ToString() ToString()
TryParse(NSDictionary, CGSize) TryParse(NSDictionary, CGSize)

Attempts to parse the contents of an NSDictionary with a serialized CGSize into a CGSize.

Operators

Addition(CGSize, CGSize) Addition(CGSize, CGSize)

Adds two CGSize structures together and returns the result.

Equality(CGSize, CGSize) Equality(CGSize, CGSize)
Explicit(CGSize to SizeF) Explicit(CGSize to SizeF)
Explicit(CGSize to CGPoint) Explicit(CGSize to CGPoint)
Explicit(CGSize to Size) Explicit(CGSize to Size)
Implicit(Size to CGSize) Implicit(Size to CGSize)
Implicit(SizeF to CGSize) Implicit(SizeF to CGSize)
Inequality(CGSize, CGSize) Inequality(CGSize, CGSize)
Subtraction(CGSize, CGSize) Subtraction(CGSize, CGSize)

Applies to