Xamarin.Forms Guides | Samples

Xamarin.Forms.Thickness Structure

Struct defining thickness around the edges of a Rectangle using doubles.

See Also: Thickness


[System.Diagnostics.DebuggerDisplay("Left={Left}, Top={Top}, Right={Right}, Bottom={Bottom}, HorizontalThickness={HorizontalThickness}, VerticalThickness={VerticalThickness}")]
public struct Thickness


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:,,,,,,

The members of Xamarin.Forms.Thickness are listed below.

See Also: ValueType

Public Constructors

Creates a new Thickness object that represents a uniform thickness of size uniformSize.
Creates a new Thickness object that has a horizontal thickness of horizontalSize and a vertical thickness of verticalSize.
Creates a new Thickness object with thicknesses defined by left, top, right, and bottom.

Public Properties

BottomDouble. The thickness of the bottom of a rectangle.
HorizontalThicknessDouble. The sum of Thickness.Left and Thickness.Right.
LeftDouble. The thickness of the left side of a rectangle.
RightDouble. The thickness of the right side of a rectangle.
TopDouble. The thickness of the top of a rectangle.
VerticalThicknessDouble. The sum of Thickness.Top and Thickness.Bottom.

Public Methods

Equals(Object) : Boolean
Whether the obj is a Thickness with equivalent values.
GetHashCode() : Int32
A has value for this Thickness.

Public Operators

Equality(Thickness, Thickness)Whether two Thicknesses have identical values.
Inequality(Thickness, Thickness)Whether the values of two Thickness's have at least one difference.
Conversion to Xamarin.Forms.Thickness(Implicit)Implicit cast operator from Double.
Conversion to Xamarin.Forms.Thickness(Implicit)Converts a Size into a Thickness.