Gutenberg

Class PageWidthOptions

Information about the available width for layout

Inheritance
Implements
Inherited Members
Declaration
public record PageWidthOptions : IEquatable<PageWidthOptions>

Constructors

PageWidthOptions(PageWidthOptions)

Information about the available width for layout

Declaration
protected PageWidthOptions(PageWidthOptions original)
Parameters
Type Name Description

PageWidthOptions

original

PageWidthOptions(int, double)

Information about the available width for layout

Declaration
public PageWidthOptions(int PageWidth = 80, double PrintableRatio = 1)
Parameters
Type Name Description

int

PageWidth

The total width of the page in characters

double

PrintableRatio

The percentage of the total page width that can have printed (non-indentation) characters on it. Also known as the ribbon width.

Properties

EqualityContract

Information about the available width for layout

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description

Type

PageWidth

The total width of the page in characters

Declaration
public int PageWidth { get; init; }
Property Value
Type Description

int

PrintableRatio

The percentage of the total page width that can have printed (non-indentation) characters on it. Also known as the ribbon width.

Declaration
public double PrintableRatio { get; init; }
Property Value
Type Description

double

Methods

Deconstruct(out int, out double)

Information about the available width for layout

Declaration
public void Deconstruct(out int PageWidth, out double PrintableRatio)
Parameters
Type Name Description

int

PageWidth

double

PrintableRatio

Equals(PageWidthOptions?)

Information about the available width for layout

Declaration
public virtual bool Equals(PageWidthOptions? other)
Parameters
Type Name Description

PageWidthOptions

other

Returns
Type Description

bool

Equals(object?)

Information about the available width for layout

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description

object

obj

Returns
Type Description

bool

Overrides
object.Equals(object)

GetHashCode()

Information about the available width for layout

Declaration
public override int GetHashCode()
Returns
Type Description

int

Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Information about the available width for layout

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description

StringBuilder

builder

Returns
Type Description

bool

ToString()

Information about the available width for layout

Declaration
public override string ToString()
Returns
Type Description

string

Overrides
object.ToString()

<Clone>$()

Information about the available width for layout

Declaration
public virtual PageWidthOptions <Clone>$()
Returns
Type Description

PageWidthOptions

Operators

operator ==(PageWidthOptions?, PageWidthOptions?)

Information about the available width for layout

Declaration
public static bool operator ==(PageWidthOptions? left, PageWidthOptions? right)
Parameters
Type Name Description

PageWidthOptions

left

PageWidthOptions

right

Returns
Type Description

bool

operator !=(PageWidthOptions?, PageWidthOptions?)

Information about the available width for layout

Declaration
public static bool operator !=(PageWidthOptions? left, PageWidthOptions? right)
Parameters
Type Name Description

PageWidthOptions

left

PageWidthOptions

right

Returns
Type Description

bool

Implements

IEquatable<T>