Struct D2D1RectU
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 D2D1RectU : IEquatable<D2D1RectU>
Constructors
| Edit this page View SourceD2D1RectU(uint, uint, uint, uint)
Initializes a new instance of the D2D1RectU struct.
Declaration
public D2D1RectU(uint left, uint top, uint right, uint bottom)
Parameters
Type | Name | Description |
---|---|---|
uint | left | The x-coordinate of the upper-left corner of the rectangle. |
uint | top | The y-coordinate of the upper-left corner of the rectangle. |
uint | right | The x-coordinate of the lower-right corner of the rectangle. |
uint | 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 uint Bottom { get; set; }
Property Value
Type | Description |
---|---|
uint |
Left
Gets or sets the x-coordinate of the upper-left corner of the rectangle.
Declaration
public uint Left { get; set; }
Property Value
Type | Description |
---|---|
uint |
Right
Gets or sets the x-coordinate of the lower-right corner of the rectangle.
Declaration
public uint Right { get; set; }
Property Value
Type | Description |
---|---|
uint |
Top
Gets or sets the y-coordinate of the upper-left corner of the rectangle.
Declaration
public uint Top { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(D2D1RectU)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1RectU other)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectU | 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 ==(D2D1RectU, D2D1RectU)
Compares two D2D1RectU objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1RectU left, D2D1RectU right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectU | left | The left D2D1RectU to compare. |
D2D1RectU | right | The right D2D1RectU to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1RectU, D2D1RectU)
Compares two D2D1RectU objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1RectU left, D2D1RectU right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectU | left | The left D2D1RectU to compare. |
D2D1RectU | right | The right D2D1RectU to compare. |
Returns
Type | Description |
---|---|
bool |