Thickness Structure
Describes the thickness of a frame around a rectangle.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public readonly struct Thickness : IEquatable<Thickness>
Public Structure Thickness
Implements IEquatable(Of Thickness)
[<SealedAttribute>]
type Thickness =
struct
inherit ValueType
interface IEquatable<Thickness>
end
| Inheritance | Object → ValueType → Thickness |
| Implements | IEquatable(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
| 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 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. |