CornerRadius Structure
Represents the radii of a rectangle's corners.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public readonly struct CornerRadius : IEquatable<CornerRadius>
Public Structure CornerRadius
Implements IEquatable(Of CornerRadius)
[<SealedAttribute>]
type CornerRadius =
struct
inherit ValueType
interface IEquatable<CornerRadius>
end
Inheritance | Object → ValueType → CornerRadius |
Implements | IEquatable(CornerRadius) |
Constructors
CornerRadius(Double) | Initializes a new instance of the CornerRadius class |
CornerRadius(Double, Double) | Initializes a new instance of the CornerRadius class |
CornerRadius(Double, Double, Double, Double) | Initializes a new instance of the CornerRadius class |
Properties
BottomLeft | Radius of the bottom left corner. |
BottomRight | Radius of the bottom right corner. |
IsUniform | Gets a value indicating whether all corner radii are equal. |
TopLeft | Radius of the top left corner. |
TopRight | Radius of the top right corner. |
Methods
Equals(CornerRadius) | Returns a boolean indicating whether the corner radius is equal to the other given corner radius. |
Equals(Object) | Returns a boolean indicating whether the given Object is equal to this corner radius instance. (Overrides ValueType.Equals(Object)) |
GetHashCode() | (Overrides ValueType.GetHashCode()) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
Parse(String) | |
ToString() | (Overrides ValueType.ToString()) |
Operators
Equality(CornerRadius, CornerRadius) | |
Inequality(CornerRadius, CornerRadius) |