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