Table of Contents

Struct Thickness

Namespace
MiPdf.Layout
Assembly
MiPdf.dll

Spacing around a box (points).

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

Constructors

Thickness(double)

Creates a uniform thickness on all four sides.

public Thickness(double all)

Parameters

all double

Thickness(double, double)

Creates a thickness with horizontal for left and right and vertical for top and bottom.

public Thickness(double horizontal, double vertical)

Parameters

horizontal double
vertical double

Thickness(double, double, double, double)

Spacing around a box (points).

public Thickness(double Left, double Top, double Right, double Bottom)

Parameters

Left double
Top double
Right double
Bottom double

Properties

Bottom

public double Bottom { get; init; }

Property Value

double

Horizontal

Sum of Left and Right.

public double Horizontal { get; }

Property Value

double

Left

public double Left { get; init; }

Property Value

double

Right

public double Right { get; init; }

Property Value

double

Top

public double Top { get; init; }

Property Value

double

Vertical

Sum of Top and Bottom.

public double Vertical { get; }

Property Value

double

Operators

implicit operator Thickness(double)

Converts a number to a uniform thickness on all four sides.

public static implicit operator Thickness(double all)

Parameters

all double

Returns

Thickness