Struct D2D1RectL
Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom).
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1RectL : IEquatable<D2D1RectL>
Constructors
| Edit this page View SourceD2D1RectL(int, int, int, int)
Initializes a new instance of the D2D1RectL struct.
Declaration
public D2D1RectL(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
int | left | The x-coordinate of the upper-left corner of the rectangle. |
int | top | The y-coordinate of the upper-left corner of the rectangle. |
int | right | The x-coordinate of the lower-right corner of the rectangle. |
int | bottom | The y-coordinate of the lower-right corner of the rectangle. |
Properties
| Edit this page View SourceBottom
Gets or sets the y-coordinate of the lower-right corner of the rectangle.
Declaration
public int Bottom { get; set; }
Property Value
Type | Description |
---|---|
int |
Left
Gets or sets the x-coordinate of the upper-left corner of the rectangle.
Declaration
public int Left { get; set; }
Property Value
Type | Description |
---|---|
int |
Right
Gets or sets the x-coordinate of the lower-right corner of the rectangle.
Declaration
public int Right { get; set; }
Property Value
Type | Description |
---|---|
int |
Top
Gets or sets the y-coordinate of the upper-left corner of the rectangle.
Declaration
public int Top { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(D2D1RectL)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1RectL other)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectL | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D2D1RectL, D2D1RectL)
Compares two D2D1RectL objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1RectL left, D2D1RectL right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectL | left | The left D2D1RectL to compare. |
D2D1RectL | right | The right D2D1RectL to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1RectL, D2D1RectL)
Compares two D2D1RectL objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1RectL left, D2D1RectL right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectL | left | The left D2D1RectL to compare. |
D2D1RectL | right | The right D2D1RectL to compare. |
Returns
Type | Description |
---|---|
bool |