Table of Contents

Struct Thickness

Namespace
SimpleSign.HtmlToPdf.Parsing
Assembly
SimpleSign.HtmlToPdf.dll

Box model thickness (top, right, bottom, left) in points.

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

Constructors

Thickness(float)

Creates a thickness with a single value for all sides.

public Thickness(float all)

Parameters

all float

The thickness for all four sides.

Thickness(float, float)

Creates a thickness with vertical and horizontal values.

public Thickness(float vertical, float horizontal)

Parameters

vertical float

The thickness for top and bottom.

horizontal float

The thickness for left and right.

Thickness(float, float, float, float)

Box model thickness (top, right, bottom, left) in points.

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

Parameters

Top float

Top thickness.

Right float

Right thickness.

Bottom float

Bottom thickness.

Left float

Left thickness.

Fields

Zero

Zero thickness on all sides.

public static readonly Thickness Zero

Field Value

Thickness

Properties

Bottom

Bottom thickness.

public float Bottom { get; init; }

Property Value

float

Left

Left thickness.

public float Left { get; init; }

Property Value

float

Right

Right thickness.

public float Right { get; init; }

Property Value

float

Top

Top thickness.

public float Top { get; init; }

Property Value

float

Methods

Uniform(float)

Creates a uniform thickness on all sides.

public static Thickness Uniform(float all)

Parameters

all float

The thickness for all four sides.

Returns

Thickness

Uniform thickness.