# ThicknessThicknessThicknessThickness Struct

## Definition

Describes the thickness of a frame around a rectangle. Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

``public value class Thickness``
``````[System.Security.SecurityCritical]
public struct Thickness``````
``type Thickness = struct``
``Public Structure Thickness``
Inheritance
ThicknessThicknessThicknessThickness
Attributes

## Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) `Thickness` struct. For more information, see Thickness in the UWP API reference.

## Constructors

 Thickness(Double) Thickness(Double) Thickness(Double) Thickness(Double) Initializes a Thickness structure that has the specified uniform length on each side. Thickness(Double, Double, Double, Double) Thickness(Double, Double, Double, Double) Thickness(Double, Double, Double, Double) Thickness(Double, Double, Double, Double) Initializes a Thickness structure that has specific lengths (supplied as a Double) applied to each side of the rectangle.

## Properties

 Bottom Bottom Bottom Bottom Gets or sets the width, in pixels, of the lower side of the bounding rectangle. Left Left Left Left Gets or sets the width, in pixels, of the left side of the bounding rectangle. Right Right Right Right Gets or sets the width, in pixels, of the right side of the bounding rectangle. Top Top Top Top Gets or sets the width, in pixels, of the upper side of the bounding rectangle.

## Methods

 Equals(Object) Equals(Object) Equals(Object) Equals(Object) Compares this Thickness structure to another Object for equality. Equals(Thickness) Equals(Thickness) Equals(Thickness) Equals(Thickness) Compares this Thickness structure to another Thickness structure for equality. GetHashCode() GetHashCode() GetHashCode() GetHashCode() Returns the hash code of the struct. ToString() ToString() ToString() ToString() Returns the string representation of the Thickness structure.

## Operators

 Equality(Thickness, Thickness) Equality(Thickness, Thickness) Equality(Thickness, Thickness) Equality(Thickness, Thickness) Compares the value of two Thickness structs for equality. Inequality(Thickness, Thickness) Inequality(Thickness, Thickness) Inequality(Thickness, Thickness) Inequality(Thickness, Thickness) Compares two Thickness structs for inequality.