Struct Size

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.dll
API Level:
3

Represents a size in 2D space.

C#
Copy
public struct Size

Constructors

View Source

Size(Int32, Int32)

Initializes a new instance of the Size with the specified values.

Declaration
C#
Copy
public Size(int width, int height)
Parameters
Type Name Description
Int32 width

Width of the size.

Int32 height

Height of the size.

API Level: 3

Properties

View Source

Height

Gets or sets the height.

Declaration
C#
Copy
public int Height { get; set; }
Property Value
Type Description
Int32
API Level: 3
View Source

Width

Gets or sets the width.

Declaration
C#
Copy
public int Width { get; set; }
Property Value
Type Description
Int32
API Level: 3

Methods

View Source

Equals(Object)

Compares an object to an instance of Size for equality.

Declaration
C#
Copy
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj

A to compare.

Returns
Type Description
Boolean

true if the two sizes are equal; otherwise, false.

API Level: 3
View Source

GetHashCode()

Gets the hash code for this instance of Size.

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
Int32

The hash code for this instance of Size.

API Level: 3
View Source

ToString()

Returns a string that represents the current object.

Declaration
C#
Copy
public override string ToString()
Returns
Type Description
String

A string that represents the current object.

API Level: 3

Operators

View Source

Equality(Size, Size)

Compares two instances of Size for equality.

Declaration
C#
Copy
public static bool operator ==(Size size1, Size size2)
Parameters
Type Name Description
Size size1

A Size to compare.

Size size2

A Size to compare.

Returns
Type Description
Boolean

true if the two instances of Size are equal; otherwise false.

API Level: 3
View Source

Inequality(Size, Size)

Compares two instances of Size for inequality.

Declaration
C#
Copy
public static bool operator !=(Size size1, Size size2)
Parameters
Type Name Description
Size size1

A Size to compare.

Size size2

A Size to compare.

Returns
Type Description
Boolean

true if the two instances of Size are not equal; otherwise false.

API Level: 3

Extension Methods