Represents a two-dimensional size.
Normally, the values of width and height are non-negative. The functions that create an CGSize structure do not prevent you from setting a negative value for these attributes. If the value of width or height is negative, however, the behavior of some methods may be undefined.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public struct CGSize : IEquatable<CGSize>
Public Structure CGSize _ Implements IEquatable(Of CGSize)
public value class CGSize : IEquatable<CGSize>
Members
All Members | Constructors | Methods | Fields | ||
Icon | Member | Description |
---|---|---|
CGSize(Single, Single) |
Initializes a new instance of the CGSize class.
| |
Add(CGSize, CGSize) |
Returns the sum of the two sizes instances.
| |
Addition(CGSize, CGSize) |
Implements the operator +.
| |
CGSizeEqualToSize(CGSize, CGSize) |
Indicates whether two sizes are equal.
| |
CGSizeMake(Single, Single) |
Returns a size structure constructed from dimension values you provide.
| |
CGSizeZero |
A CGSize with its width and height set to zero.
| |
Divide(CGSize, Single) |
Returns the result of the division of the size instance by the given factor.
| |
Division(CGSize, Single) |
Implements the operator /.
| |
Equality(CGSize, CGSize) |
Implements the operator ==.
| |
Equals(CGSize) |
Equalses the specified ns size.
| |
Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).) | |
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode()()()() |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()()()().) | |
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
height |
The height.
| |
Inequality(CGSize, CGSize) |
Implements the operator !=.
| |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
Multiply(CGSize, Single) |
Returns the product of the size instance by the given factor.
| |
Multiply(CGSize, Single) |
Implements the operator *.
| |
Substract(CGSize, CGSize) |
Returns the difference of the two sizes instances.
| |
Subtraction(CGSize, CGSize) |
Implements the operator -.
| |
ToString()()()() |
Returns the a string representation of this instance.
(Overrides ValueType.ToString()()()().) | |
width |
The width.
|
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)