CGSize Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Structure containing height and width values.
[System.Serializable]
public struct CGSize : IEquatable<CoreGraphics.CGSize>
type CGSize = struct
- Inheritance
-
CGSize
- Attributes
- Implements
Constructors
CGSize(CGPoint) |
Initializes a CGSize object from a CGPoint. |
CGSize(CGSize) |
Initializes a CGSize object from another CGSize. |
CGSize(Double, Double) | |
CGSize(nfloat, nfloat) |
Initializes a CGSize with the given width and height. |
CGSize(Single, Single) |
Fields
Empty |
Represents an empty size. |
Properties
Height |
The height component of the CGSize. |
IsEmpty |
Returns true if the size is empty |
Width |
The Width component of the CGSize. |
Methods
Add(CGSize, CGSize) |
Adds two CGSize objects and returns the result. |
Equals(CGSize) |
Compares the size with the specified size. |
Equals(Object) |
Compares the CGSize with another object. |
GetHashCode() | |
Subtract(CGSize, CGSize) | |
ToCGPoint() |
Converts the CGSize to a CGPOint. |
ToDictionary() |
Serializes a CGSize into an NSDictionary. |
ToPointF() |
Obsolete.
Converts the size to a CGPoint. |
ToRoundedCGSize() | |
ToSize() | |
ToString() | |
TryParse(NSDictionary, CGSize) |
Attempts to parse the contents of an NSDictionary with a serialized CGSize into a CGSize. |
Operators
Addition(CGSize, CGSize) |
Adds two CGSize structures together and returns the result. |
Equality(CGSize, CGSize) | |
Explicit(CGSize to CGPoint) | |
Explicit(CGSize to Size) | |
Explicit(CGSize to SizeF) | |
Implicit(Size to CGSize) | |
Implicit(SizeF to CGSize) | |
Inequality(CGSize, CGSize) | |
Subtraction(CGSize, CGSize) |