Table of Contents

Method AnchorEnd

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AnchorEnd(int)

Creates a Pos object that is anchored to the end (right side or bottom) of the dimension, useful to flush the layout from the right or bottom.

public static Pos AnchorEnd(int margin = 0)

Parameters

margin int

Optional margin to place to the right or below.

Returns

Pos

The Pos object anchored to the end (the bottom or the right side).

Examples

This sample shows how align a Button to the bottom-right of a View.

// See Issue #502 
anchorButton.X = Pos.AnchorEnd () - (Pos.Right (anchorButton) - Pos.Left (anchorButton));
anchorButton.Y = Pos.AnchorEnd (1);