Table of Contents

Class PosAlign

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Enables alignment of a set of views.

public record PosAlign : Pos, IEquatable<Pos>, IEquatable<PosAlign>
Inheritance
PosAlign
Implements
Inherited Members

Remarks

Updating the properties of Aligner is supported, but will not automatically cause re-layout to happen. Layout() must be called on the SuperView.

Views that should be aligned together must have a distinct GroupId. When only a single set of views is aligned within a SuperView, setting GroupId is optional because it defaults to 0.

The first view added to the Superview with a given GroupId is used to determine the alignment of the group. The alignment is applied to all views with the same GroupId.

Properties

Aligner

Gets the alignment settings.

GroupId

Gets the identifier of a set of views that should be aligned together. When only a single set of views in a SuperView is aligned, setting GroupId is not needed because it defaults to 0.

Methods

CalculateMinDimension(int, IList<View>, Dimension)

Returns the minimum size a group of views with the same groupId can be.

ToString()

Returns a string that represents the current object.