Property Frame
Frame
Gets or sets the resolved location and dimension of the view.
public Rectangle Frame { get; set; }
Property Value
- Rectangle
The rectangle describing absolute location and dimension of the view, in coordinates relative to the SuperView's Content, which is bound by GetContentSize().
Remarks
See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.Gui/docs/layout.html
Frame is typically the output of Terminal.Gui's responsive layout system. To describe layout, use X, Y, Width, and Height. To inspect the resolved result, read Frame after layout has resolved those relationships.
Frame is relative to the SuperView's Content, which is bound by GetContentSize() .
Setting Frame will set X, Y, Width, and Height to absolute values.
Changing this property will result in NeedsLayout and NeedsDraw to be set, resulting in the view being laid out and redrawn as appropriate in the next iteration.