Struct DWriteSize
Specifies the width and height of a rectangle.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteSize : IEquatable<DWriteSize>
Constructors
| Edit this page View SourceDWriteSize(int, int)
Initializes a new instance of the DWriteSize struct.
Declaration
public DWriteSize(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | The rectangle's width. |
int | height | The rectangle's height. |
Properties
| Edit this page View SourceHeight
Gets or sets the rectangle's height.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int |
Width
Gets or sets the rectangle's width.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(DWriteSize)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteSize other)
Parameters
Type | Name | Description |
---|---|---|
DWriteSize | 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 ==(DWriteSize, DWriteSize)
Compares two DWriteSize objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteSize left, DWriteSize right)
Parameters
Type | Name | Description |
---|---|---|
DWriteSize | left | The left DWriteSize to compare. |
DWriteSize | right | The right DWriteSize to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteSize, DWriteSize)
Compares two DWriteSize objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteSize left, DWriteSize right)
Parameters
Type | Name | Description |
---|---|---|
DWriteSize | left | The left DWriteSize to compare. |
DWriteSize | right | The right DWriteSize to compare. |
Returns
Type | Description |
---|---|
bool |