Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents the location of the object bounded by a rectangle defined by
coordinates of top left corner, width and height.
Constructors
Declaration
public Rectangle(int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
The x-coordinate of the upper-left corner of the rectangle.
|
System.Int32 |
y |
The y-coordinate of the upper-left corner of the rectangle.
|
System.Int32 |
width |
The Width of the rectangle.
|
System.Int32 |
height |
The Height of the rectangle.
|
API Level: 3
Declaration
public Rectangle(Point location, Size size)
Parameters
Type |
Name |
Description |
Point |
location |
A Location that represents the upper-left corner of the rectangular region.
|
Size |
size |
A Size that represents the width and height of the rectangular region.
|
API Level: 3
Properties
View Source
Gets the y-coordinate of the bottom edge of the rectangle.
Declaration
public int Bottom { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
Declaration
public int Height { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
Gets the x-coordinate of the left edge of the rectangle.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
Gets or sets the coordinates of the upper-left corner of the rectangle.
Declaration
public Point Location { get; set; }
Property Value
API Level: 3
View Source
Gets the x-coordinate of the right edge of the rectangle.
Declaration
public int Right { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
Declaration
public Size Size { get; set; }
Property Value
API Level: 3
View Source
Gets the y-coordinate of the top edge of the rectangle.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
Declaration
public int Width { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
Gets or sets the x-coordinate of the upper-left corner of the rectangle.
Declaration
public int X { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
Gets or sets the y-coordinate of the upper-left corner of the rectangle.
Declaration
public int Y { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
Methods
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
A System.Object to compare.
|
Returns
Type |
Description |
System.Boolean |
true if the rectangles are equal; otherwise, false.
|
Overrides
System.ValueType.Equals(System.Object)
API Level: 3
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
The hash code for this instance of Rectangle.
|
Overrides
System.ValueType.GetHashCode()
API Level: 3
View Source
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
A string that represents the current object.
|
Overrides
System.ValueType.ToString()
API Level: 3
Operators
Declaration
public static bool operator ==(Rectangle rect1, Rectangle rect2)
Parameters
Returns
Type |
Description |
System.Boolean |
true if the two instances of Rectangle are equal; otherwise false.
|
API Level: 3
Declaration
public static bool operator !=(Rectangle rect1, Rectangle rect2)
Parameters
Returns
Type |
Description |
System.Boolean |
true if the two instances of Rectangle are not equal; otherwise false.
|
API Level: 3