Skip to main content

Thickness Structure

Describes the thickness of a frame around a rectangle.

Definition

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

public readonly struct Thickness : IEquatable<Thickness>
View Source
InheritanceObjectValueType → Thickness
ImplementsIEquatable(Thickness)

Constructors

Thickness(Double)Initializes a new instance of the Thickness structure.
Thickness(Double, Double)Initializes a new instance of the Thickness structure.
Thickness(Double, Double, Double, Double)Initializes a new instance of the Thickness structure.

Properties

BottomGets the thickness on the bottom.
IsUniformGets a value indicating whether all sides are equal.
LeftGets the thickness on the left.
RightGets the thickness on the right.
TopGets the thickness on the top.

Methods

Deconstruct(Double, Double, Double, Double)Deconstructor the thickness into its left, top, right and bottom thickness values.
Equals(Object)Checks for equality between a thickness and an object.
(Overrides ValueType.Equals(Object))
Equals(Thickness)Returns a boolean indicating whether the thickness is equal to the other given point.
GetHashCode()Returns a hash code for a Thickness.
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Parse(String)Parses a Thickness string.
ToString()Returns the string representation of the thickness.
(Overrides ValueType.ToString())

Operators

Addition(Size, Thickness)Adds a Thickness to a Size.
Addition(Thickness, Thickness)Adds two Thicknesses.
Equality(Thickness, Thickness)Compares two Thicknesses.
Inequality(Thickness, Thickness)Compares two Thicknesses.
Multiply(Thickness, Double)Multiplies a Thickness to a scalar.
Subtraction(Size, Thickness)Subtracts a Thickness from a Size.
Subtraction(Thickness, Thickness)Subtracts two Thicknesses.

See Also

Reference

Avalonia Namespace