ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
CoreGraphics.CGSize Class Reference

Represents a simulated iOS CGSize used to ease the porting of UI code from iOS to Android. A CGSize can be implicitly converted to and from an Android Size or SizeF. More...

Public Member Functions

 CGSize ()
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (CGSize size)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (CGPoint point)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (int width, int height)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (double width, double height)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (nfloat width, nfloat height)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (Size size)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
 CGSize (SizeF size)
 Initializes a new instance of the T:CoreGraphics.CGSize class. More...
 
override string ToString ()
 Returns a T:System.String that represents the current T:CoreGraphics.CGSize. More...
 

Static Public Member Functions

static implicit operator Size (CGSize size)
 Converts a CGSize to a Size. More...
 
static implicit operator CGSize (Size size)
 Converts the Size to a CGSize. More...
 
static implicit operator SizeF (CGSize size)
 Converts a CGSize to a SizeF. More...
 
static implicit operator CGSize (SizeF size)
 Converts the SizeF to a CGSize. More...
 
static CGSize operator+ (CGSize a, CGSize b)
 Adds a CoreGraphics.CGSize to a CoreGraphics.CGSize, yielding a new T:CoreGraphics.CGSize. More...
 
static CGSize operator- (CGSize a, CGSize b)
 Subtracts a CoreGraphics.CGSize from a CoreGraphics.CGSize, yielding a new T:CoreGraphics.CGSize. More...
 
static CGSize operator* (CGSize a, CGSize b)
 Computes the product of a and b, yielding a new T:CoreGraphics.CGSize. More...
 
static CGSize operator/ (CGSize a, CGSize b)
 Computes the division of a and b, yielding a new T:CoreGraphics.CGSize. More...
 
static bool operator== (CGSize a, CGSize b)
 Determines whether a specified instance of CoreGraphics.CGSize is equal to another specified CoreGraphics.CGSize. More...
 
static bool operator!= (CGSize a, CGSize b)
 Determines whether a specified instance of CoreGraphics.CGSize is not equal to another specified CoreGraphics.CGSize. More...
 
static bool operator< (CGSize a, CGSize b)
 Determines whether one specified CoreGraphics.CGSize is lower than another specfied CoreGraphics.CGSize. More...
 
static bool operator> (CGSize a, CGSize b)
 Determines whether one specified CoreGraphics.CGSize is greater than another specfied CoreGraphics.CGSize. More...
 
static bool operator<= (CGSize a, CGSize b)
 Determines whether one specified CoreGraphics.CGSize is lower than or equal to another specfied CoreGraphics.CGSize. More...
 
static bool operator>= (CGSize a, CGSize b)
 Determines whether one specified CoreGraphics.CGSize is greater than or equal to another specfied CoreGraphics.CGSize. More...
 

Properties

nfloat Height [get, set]
 Gets or sets the height. More...
 
nfloat Width = 0f [get, set]
 Gets or sets the width. More...
 

Detailed Description

Represents a simulated iOS CGSize used to ease the porting of UI code from iOS to Android. A CGSize can be implicitly converted to and from an Android Size or SizeF.

Constructor & Destructor Documentation

CoreGraphics.CGSize.CGSize ( )

Initializes a new instance of the T:CoreGraphics.CGSize class.

Here is the caller graph for this function:

CoreGraphics.CGSize.CGSize ( CGSize  size)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
sizeSize.
CoreGraphics.CGSize.CGSize ( CGPoint  point)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
pointPoint.
CoreGraphics.CGSize.CGSize ( int  width,
int  height 
)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
heightHeight.
widthWidth.
CoreGraphics.CGSize.CGSize ( double  width,
double  height 
)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
heightHeight.
widthWidth.
CoreGraphics.CGSize.CGSize ( nfloat  width,
nfloat  height 
)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
heightHeight.
widthWidth.
CoreGraphics.CGSize.CGSize ( Size  size)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
sizeSize.
CoreGraphics.CGSize.CGSize ( SizeF  size)

Initializes a new instance of the T:CoreGraphics.CGSize class.

Parameters
sizeSize.

Member Function Documentation

static implicit CoreGraphics.CGSize.operator CGSize ( Size  size)
static

Converts the Size to a CGSize.

Returns
The implicitly converted CGSize.
Parameters
sizeSize.

Here is the call graph for this function:

static implicit CoreGraphics.CGSize.operator CGSize ( SizeF  size)
static

Converts the SizeF to a CGSize.

Returns
The implicitly converted CGSize.
Parameters
sizeSize.

Here is the call graph for this function:

static implicit CoreGraphics.CGSize.operator Size ( CGSize  size)
static

Converts a CGSize to a Size.

Returns
The implicitly converted Size.
Parameters
sizeSize.
static implicit CoreGraphics.CGSize.operator SizeF ( CGSize  size)
static

Converts a CGSize to a SizeF.

Returns
The implicitly converted SizeF.
Parameters
sizeSize.
static bool CoreGraphics.CGSize.operator!= ( CGSize  a,
CGSize  b 
)
static

Determines whether a specified instance of CoreGraphics.CGSize is not equal to another specified CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to compare.
bThe second CoreGraphics.CGSize to compare.
Returns
true if a and b are not equal; otherwise, false.
static CGSize CoreGraphics.CGSize.operator* ( CGSize  a,
CGSize  b 
)
static

Computes the product of a and b, yielding a new T:CoreGraphics.CGSize.

Parameters
aThe CoreGraphics.CGSize to multiply.
bThe CoreGraphics.CGSize to multiply.
Returns
The T:CoreGraphics.CGSize that is the a * b.

Here is the call graph for this function:

static CGSize CoreGraphics.CGSize.operator+ ( CGSize  a,
CGSize  b 
)
static

Adds a CoreGraphics.CGSize to a CoreGraphics.CGSize, yielding a new T:CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to add.
bThe second CoreGraphics.CGSize to add.
Returns
The T:CoreGraphics.CGSize that is the sum of the values of a and b.

Here is the call graph for this function:

static CGSize CoreGraphics.CGSize.operator- ( CGSize  a,
CGSize  b 
)
static

Subtracts a CoreGraphics.CGSize from a CoreGraphics.CGSize, yielding a new T:CoreGraphics.CGSize.

Parameters
aThe CoreGraphics.CGSize to subtract from (the minuend).
bThe CoreGraphics.CGSize to subtract (the subtrahend).
Returns
The T:CoreGraphics.CGSize that is the a minus b.

Here is the call graph for this function:

static CGSize CoreGraphics.CGSize.operator/ ( CGSize  a,
CGSize  b 
)
static

Computes the division of a and b, yielding a new T:CoreGraphics.CGSize.

Parameters
aThe CoreGraphics.CGSize to divide (the divident).
bThe CoreGraphics.CGSize to divide (the divisor).
Returns
The T:CoreGraphics.CGSize that is the a / b.

Here is the call graph for this function:

static bool CoreGraphics.CGSize.operator< ( CGSize  a,
CGSize  b 
)
static

Determines whether one specified CoreGraphics.CGSize is lower than another specfied CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to compare.
bThe second CoreGraphics.CGSize to compare.
Returns
true if a is lower than b; otherwise, false.
static bool CoreGraphics.CGSize.operator<= ( CGSize  a,
CGSize  b 
)
static

Determines whether one specified CoreGraphics.CGSize is lower than or equal to another specfied CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to compare.
bThe second CoreGraphics.CGSize to compare.
Returns
true if a is lower than or equal to b; otherwise, false.
static bool CoreGraphics.CGSize.operator== ( CGSize  a,
CGSize  b 
)
static

Determines whether a specified instance of CoreGraphics.CGSize is equal to another specified CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to compare.
bThe second CoreGraphics.CGSize to compare.
Returns
true if a and b are equal; otherwise, false.
static bool CoreGraphics.CGSize.operator> ( CGSize  a,
CGSize  b 
)
static

Determines whether one specified CoreGraphics.CGSize is greater than another specfied CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to compare.
bThe second CoreGraphics.CGSize to compare.
Returns
true if a is greater than b; otherwise, false.
static bool CoreGraphics.CGSize.operator>= ( CGSize  a,
CGSize  b 
)
static

Determines whether one specified CoreGraphics.CGSize is greater than or equal to another specfied CoreGraphics.CGSize.

Parameters
aThe first CoreGraphics.CGSize to compare.
bThe second CoreGraphics.CGSize to compare.
Returns
true if a is greater than or equal to b; otherwise, false.
override string CoreGraphics.CGSize.ToString ( )

Returns a T:System.String that represents the current T:CoreGraphics.CGSize.

Returns
A T:System.String that represents the current T:CoreGraphics.CGSize.

Property Documentation

nfloat CoreGraphics.CGSize.Height
getset

Gets or sets the height.

The height.

nfloat CoreGraphics.CGSize.Width = 0f
getset

Gets or sets the width.

The width.