Xamarin.Forms Guides | Samples

Xamarin.Forms.Thickness Structure

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

See Also: Thickness

Syntax

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

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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.
[read-only]
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.
[read-only]
VerticalThicknessDouble. The sum of Thickness.Top and Thickness.Bottom.

Public Methods

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

Public Operators

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