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 DWrite
Declaration
public DWriteSize(int width, int height)
Parameters
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 |
---|---|---|
DWrite |
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 DWrite
Declaration
public static bool operator ==(DWriteSize left, DWriteSize right)
Parameters
Type | Name | Description |
---|---|---|
DWrite |
left | The left DWrite |
DWrite |
right | The right DWrite |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteSize, DWriteSize)
Compares two DWrite
Declaration
public static bool operator !=(DWriteSize left, DWriteSize right)
Parameters
Type | Name | Description |
---|---|---|
DWrite |
left | The left DWrite |
DWrite |
right | The right DWrite |
Returns
Type | Description |
---|---|
bool |