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