Table of Contents

Constructor PosAnchorEnd

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

PosAnchorEnd()

Constructs a new position anchored to the end (right side or bottom) of the SuperView's content area, offset by the view's respective dimension. This positions the view so its right/bottom edge aligns with the SuperView's right/bottom edge.

public PosAnchorEnd()

Remarks

This is equivalent to using Pos.AnchorEnd (0), but uses the view's calculated dimension as the offset, ensuring the view fits exactly at the end.

PosAnchorEnd(int)

Constructs a new position anchored to the end (right side or bottom) of the SuperView's content area, with a specified offset from that edge.

public PosAnchorEnd(int offset)

Parameters

offset int

The number of columns (for X) or rows (for Y) from the right/bottom edge. Positive values move the view away from the edge (towards the start), creating space between the view and the edge.

Examples

// Position button 2 columns from the right edge
button.X = Pos.AnchorEnd (2);
// If SuperView width is 80, button will be at X = 80 - 2 = 78

PosAnchorEnd(PosAnchorEnd)

protected PosAnchorEnd(PosAnchorEnd original)

Parameters

original PosAnchorEnd