Thickness Struct

Summary

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

Syntax

public readonly struct Thickness : ValueType

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.
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