CornerRadius Struct

Summary

Represents the radii of a rectangle's corners.
Namespace
Avalonia
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<CornerRadius>"] Type["CornerRadius"] class Type type-node

Syntax

public readonly struct CornerRadius : ValueType, IEquatable<CornerRadius>

Constructors

Properties

Name Value Summary
BottomLeft double
Radius of the bottom left corner.
BottomRight double
Radius of the bottom right corner.
IsEmpty bool
Gets a value indicating whether all corner radii are set to 0.
IsUniform bool
Gets a value indicating whether all corner radii are equal.
TopLeft double
Radius of the top left corner.
TopRight double
Radius of the top right corner.

Methods

Name Value Summary
Equals(CornerRadius) bool
Returns a boolean indicating whether the corner radius is equal to the other given corner radius.
Equals(object) bool
Returns a boolean indicating whether the given Object is equal to this corner radius instance.
GetHashCode() int
Parse(string) CornerRadius
static
ToString() string

Operators

Name Value Summary
operator !=(CornerRadius, CornerRadius) bool
operator ==(CornerRadius, CornerRadius) bool