Table of Contents

Property Y

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Y

Gets or sets the Y position for the view (the row).

public Pos Y { get; set; }

Property Value

Pos

The Pos object representing the Y position.

Remarks

The position is relative to the SuperView's Content, which is bound by ContentSize.

If set to a relative value (e.g. Center()) the value is indeterminate until the view has been initialized ( IsInitialized is true) and SetRelativeLayout(Size?) has been called.

Changing this property will eventually (when the view is next drawn) cause the LayoutSubview(View, Size) and OnDrawContent(Rectangle) methods to be called.

Changing this property will cause Frame to be updated. If the new value is not of type Pos.PosAbsolute the LayoutStyle will change to Computed.

The default value is Pos.At (0).