Struct D2D1SizeF
Stores an ordered pair of floats, typically the width and height of a rectangle.
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1SizeF : IEquatable<D2D1SizeF>
Constructors
|
Edit this page
View Source
D2D1SizeF(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 Source
Height
Gets or sets the vertical component of this size.
Declaration
public float Height { get; set; }
Property Value
|
Edit this page
View Source
Width
Gets or sets the horizontal component of this size.
Declaration
public float Width { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D2D1SizeF)
Declaration
public readonly bool Equals(D2D1SizeF other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static D2D1SizeF NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D2D1SizeF>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1SizeF> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in D2D1SizeF)
Declaration
public static void NativeWriteTo(nint buffer, in D2D1SizeF obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D2D1SizeF>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1SizeF> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D2D1SizeF, D2D1SizeF)
Declaration
public static bool operator ==(D2D1SizeF left, D2D1SizeF right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D2D1SizeF, D2D1SizeF)
Declaration
public static bool operator !=(D2D1SizeF left, D2D1SizeF right)
Parameters
Returns
Implements