Struct Thickness

Namespace
Forma
Assembly
Forma.dll

Margins, padding and separation values used by UI controls.

public readonly struct Thickness : IEquatable<Thickness>
Implements
Inherited Members

Constructors

Thickness(float)

public Thickness(float uniform)

Parameters

uniform float

Thickness(float, float, float, float)

public Thickness(float left, float top, float right, float bottom)

Parameters

left float
top float
right float
bottom float

Properties

Bottom

public float Bottom { get; }

Property Value

float

Horizontal

public float Horizontal { get; }

Property Value

float

Left

public float Left { get; }

Property Value

float

Right

public float Right { get; }

Property Value

float

Top

public float Top { get; }

Property Value

float

Vertical

public float Vertical { get; }

Property Value

float

Zero

public static Thickness Zero { get; }

Property Value

Thickness

Methods

Equals(Thickness)

public bool Equals(Thickness other)

Parameters

other Thickness

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(Thickness, Thickness)

public static bool operator ==(Thickness left, Thickness right)

Parameters

left Thickness
right Thickness

Returns

bool

operator !=(Thickness, Thickness)

public static bool operator !=(Thickness left, Thickness right)

Parameters

left Thickness
right Thickness

Returns

bool