Table of Contents

Struct Alignment

Namespace
Serilog.Parsing
Assembly
Serilog.dll

A structure representing the alignment settings to apply when rendering a property.

public readonly struct Alignment
Inherited Members

Constructors

Alignment(AlignmentDirection, int)

Initializes a new instance of Alignment.

public Alignment(AlignmentDirection direction, int width)

Parameters

direction AlignmentDirection

The text alignment direction.

width int

The width of the text, in characters.

Properties

Direction

The text alignment direction.

public AlignmentDirection Direction { get; }

Property Value

AlignmentDirection

Width

The width of the text.

public int Width { get; }

Property Value

int