Thickness Structure

Describes the thickness of a frame around a rectangle.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct Thickness : IEquatable<Thickness>
Inheritance
Object    ValueType    Thickness
Implements
IEquatableThickness

Properties

Bottom Gets the thickness on the bottom.
IsUniform Gets a value indicating whether all sides are equal.
Left Gets the thickness on the left.
Right Gets the thickness on the right.
Top Gets 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 ValueTypeEquals(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 ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Parse(String) Parses a Thickness string.
ToString Returns the string representation of the thickness.
(Overrides ValueTypeToString)

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