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