Struct D2D1RectL
Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom).
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1RectL : IEquatable<D2D1RectL>
Constructors
|
Edit this page
View Source
D2D1RectL(int, int, int, int)
Initializes a new instance of the D2D1RectL struct.
Declaration
public D2D1RectL(int left, int top, int right, int bottom)
Parameters
| Type |
Name |
Description |
| int |
left |
The x-coordinate of the upper-left corner of the rectangle.
|
| int |
top |
The y-coordinate of the upper-left corner of the rectangle.
|
| int |
right |
The x-coordinate of the lower-right corner of the rectangle.
|
| int |
bottom |
The y-coordinate of the lower-right corner of the rectangle.
|
Properties
|
Edit this page
View Source
Bottom
Gets or sets the y-coordinate of the lower-right corner of the rectangle.
Declaration
public int Bottom { get; set; }
Property Value
|
Edit this page
View Source
Left
Gets or sets the x-coordinate of the upper-left corner of the rectangle.
Declaration
public int Left { get; set; }
Property Value
|
Edit this page
View Source
Right
Gets or sets the x-coordinate of the lower-right corner of the rectangle.
Declaration
public int Right { get; set; }
Property Value
|
Edit this page
View Source
Top
Gets or sets the y-coordinate of the upper-left corner of the rectangle.
Declaration
public int Top { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D2D1RectL)
Declaration
public readonly bool Equals(D2D1RectL 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 D2D1RectL NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D2D1RectL>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1RectL> 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 D2D1RectL)
Declaration
public static void NativeWriteTo(nint buffer, in D2D1RectL obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D2D1RectL>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1RectL> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D2D1RectL, D2D1RectL)
Declaration
public static bool operator ==(D2D1RectL left, D2D1RectL right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D2D1RectL, D2D1RectL)
Declaration
public static bool operator !=(D2D1RectL left, D2D1RectL right)
Parameters
Returns
Implements