Struct D2D1RoundedRect
Contains the dimensions and corner radii of a rounded rectangle.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1RoundedRect : IEquatable<D2D1RoundedRect>
Constructors
| Edit this page View SourceD2D1RoundedRect(D2D1RectF, float, float)
Initializes a new instance of the D2D1RoundedRect struct.
Declaration
public D2D1RoundedRect(D2D1RectF rect, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectF | rect | The coordinates of the rectangle. |
float | radiusX | The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
float | radiusY | The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle. |
Properties
| Edit this page View SourceRadiusX
Gets or sets the x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
Declaration
public float RadiusX { get; set; }
Property Value
Type | Description |
---|---|
float |
RadiusY
Gets or sets the y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
Declaration
public float RadiusY { get; set; }
Property Value
Type | Description |
---|---|
float |
Rect
Gets or sets the coordinates of the rectangle.
Declaration
public D2D1RectF Rect { get; set; }
Property Value
Type | Description |
---|---|
D2D1RectF |
Methods
| Edit this page View SourceEquals(D2D1RoundedRect)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1RoundedRect other)
Parameters
Type | Name | Description |
---|---|---|
D2D1RoundedRect | 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 ==(D2D1RoundedRect, D2D1RoundedRect)
Compares two D2D1RoundedRect objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1RoundedRect left, D2D1RoundedRect right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RoundedRect | left | The left D2D1RoundedRect to compare. |
D2D1RoundedRect | right | The right D2D1RoundedRect to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1RoundedRect, D2D1RoundedRect)
Compares two D2D1RoundedRect objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1RoundedRect left, D2D1RoundedRect right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RoundedRect | left | The left D2D1RoundedRect to compare. |
D2D1RoundedRect | right | The right D2D1RoundedRect to compare. |
Returns
Type | Description |
---|---|
bool |