Table of Contents

Struct Thickness

Namespace
PluginUI
Assembly
PluginUI.dll

Thickness of a frame (margin, padding, border) for each side, in DIPs.

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

Constructors

Thickness(float)

Same thickness on every side.

public Thickness(float uniform)

Parameters

uniform float

Thickness(float, float)

Horizontal and vertical thickness.

public Thickness(float horizontal, float vertical)

Parameters

horizontal float
vertical float

Thickness(float, float, float, float)

Thickness of a frame (margin, padding, border) for each side, in DIPs.

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; init; }

Property Value

float

Horizontal

Left + right.

public float Horizontal { get; }

Property Value

float

Left

public float Left { get; init; }

Property Value

float

Right

public float Right { get; init; }

Property Value

float

Top

public float Top { get; init; }

Property Value

float

Vertical

Top + bottom.

public float Vertical { get; }

Property Value

float

Zero

No thickness.

public static Thickness Zero { get; }

Property Value

Thickness

Operators

implicit operator Thickness(float)

Implicit conversion from a uniform value.

public static implicit operator Thickness(float uniform)

Parameters

uniform float

Returns

Thickness