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
allfloatThe thickness for all four sides.
Thickness(float, float)
Creates a thickness with vertical and horizontal values.
public Thickness(float vertical, float horizontal)
Parameters
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
TopfloatTop thickness.
RightfloatRight thickness.
BottomfloatBottom thickness.
LeftfloatLeft thickness.
Fields
Zero
Zero thickness on all sides.
public static readonly Thickness Zero
Field Value
Properties
Bottom
Bottom thickness.
public float Bottom { get; init; }
Property Value
Left
Left thickness.
public float Left { get; init; }
Property Value
Right
Right thickness.
public float Right { get; init; }
Property Value
Top
Top thickness.
public float Top { get; init; }
Property Value
Methods
Uniform(float)
Creates a uniform thickness on all sides.
public static Thickness Uniform(float all)
Parameters
allfloatThe thickness for all four sides.
Returns
- Thickness
Uniform thickness.