Struct DWriteRect
Defines the coordinates of the upper-left and lower-right corners of a rectangle.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteRect : IEquatable<DWriteRect>
Constructors
| Edit this page View SourceDWriteRect(int, int, int, int)
Initializes a new instance of the DWriteRect struct.
Declaration
public DWriteRect(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
int | left | The x-coordinate of the upper-left corner of a rectangle. |
int | top | The y-coordinate of the upper-left corner of a rectangle. |
int | right | The x-coordinate of the lower-right corner of a rectangle. |
int | bottom | The y-coordinate of the lower-right corner of a rectangle. |
Properties
| Edit this page View SourceBottom
Gets or sets the y-coordinate of the lower-right corner of a 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 a 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 a 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 a rectangle.
Declaration
public int Top { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(DWriteRect)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteRect other)
Parameters
Type | Name | Description |
---|---|---|
DWriteRect | 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
| Edit this page View SourceToString()
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
Operators
| Edit this page View Sourceoperator ==(DWriteRect, DWriteRect)
Compares two DWriteRect objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteRect left, DWriteRect right)
Parameters
Type | Name | Description |
---|---|---|
DWriteRect | left | The left DWriteRect to compare. |
DWriteRect | right | The right DWriteRect to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteRect, DWriteRect)
Compares two DWriteRect objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteRect left, DWriteRect right)
Parameters
Type | Name | Description |
---|---|---|
DWriteRect | left | The left DWriteRect to compare. |
DWriteRect | right | The right DWriteRect to compare. |
Returns
Type | Description |
---|---|
bool |