Thickness Struct

Summary

Describes the thickness of a frame around a rectangle.
Namespace
Avalonia
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<Thickness>"] Type["Thickness"] class Type type-node

Syntax

public readonly struct Thickness : ValueType, IEquatable<Thickness>

Constructors

Name Summary
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

Name Value Summary
Bottom double
Gets the thickness on the bottom.
IsEmpty bool
Gets a value indicating whether all sides are set to 0.
IsUniform bool
Gets a value indicating whether all sides are equal.
Left double
Gets the thickness on the left.
Right double
Gets the thickness on the right.
Top double
Gets the thickness on the top.

Methods

Name Value Summary
Equals(object) bool
Checks for equality between a thickness and an object.
Equals(Thickness) bool
Returns a boolean indicating whether the thickness is equal to the other given point.
GetHashCode() int
Returns a hash code for a Thickness.
Parse(string) Thickness
Parses a Thickness string.
static
ToString() string
Returns the string representation of the thickness.

Operators

Name Value Summary
operator !=(Thickness, Thickness) bool
operator -(Size, Thickness) Size
operator -(Thickness, Thickness) Thickness
operator *(Thickness, double) Thickness
operator +(Size, Thickness) Size
operator +(Thickness, Thickness) Thickness
operator ==(Thickness, Thickness) bool