Class Border
The lightweight Border settings for a View. Accessed via Border. Stores Thickness, LineStyle, and Settings without creating a full View unless rendering, arrangement, or SubViews require it.
public class Border : AdornmentImpl, IAdornment
- Inheritance
-
Border
- Implements
- Inherited Members
Remarks
Renders a border around the view with the Title. A border using LineStyle will be drawn on the sides of Thickness that are greater than zero.
The Border provides keyboard and mouse support for moving and resizing the View. See ViewArrangement.
Constructors
Properties
- LineStyle
Sets the style of the lines drawn in the Border. If not set, will inherit the style from the Parent's SuperView's BorderStyle. If set, will cause View to be created.
- Settings
Gets or sets the settings for the border.
Methods
- CreateView()
Factory method — subclasses return their specific AdornmentView subclass.
- GetFrame()
The calculated frame rectangle for this adornment layer, set by Terminal.Gui.ViewBase.View.SetAdornmentFrames. This is the single source of truth for adornment geometry.
- OnThicknessChanged()
Called when Thickness changes. Override in subclasses to react; base is empty.