Skip to main content

CornerRadius Structure

Represents the radii of a rectangle's corners.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public readonly struct CornerRadius : IEquatable<CornerRadius>
View Source
InheritanceObject → ValueType → CornerRadius
ImplementsIEquatable(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​

BottomLeftRadius of the bottom left corner.
BottomRightRadius of the bottom right corner.
IsUniformGets a value indicating whether all corner radii are equal.
TopLeftRadius of the top left corner.
TopRightRadius 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) 

See Also​

Reference​

Avalonia Namespace