Class Border.ToplevelContainer
A sealed Toplevel derived class to implement Border feature.
This is only a wrapper to get borders on a toplevel and is recommended using another
derived, like Window where is possible to have borders with or without
border line or spacing around.
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public sealed class ToplevelContainer : Toplevel
Constructors
ToplevelContainer()
Initializes with default null values.
Declaration
public ToplevelContainer()
ToplevelContainer(Border, String)
Initializes a Border.ToplevelContainer with a Computed
Declaration
public ToplevelContainer(Border border, string title = null)
Parameters
Type | Name | Description |
---|---|---|
Border | border | The border. |
System.String | title | The title. |
ToplevelContainer(Rect, Border, String)
Initializes a Border.ToplevelContainer with a Absolute
Declaration
public ToplevelContainer(Rect frame, Border border, string title = null)
Parameters
Type | Name | Description |
---|---|---|
Rect | frame | The frame. |
Border | border | The border. |
System.String | title | The title. |
Properties
Border
Declaration
public override Border Border { get; set; }
Property Value
Type | Description |
---|---|
Border |
Overrides
Methods
Add(View)
Adds a subview (child) to this view.
Declaration
public override void Add(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view |
Overrides
OnCanFocusChanged()
Method invoked when the CanFocus property from a view is changed.
Declaration
public override void OnCanFocusChanged()
Overrides
Redraw(Rect)
Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
Declaration
public override void Redraw(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Rect | bounds | The bounds (view-relative region) to redraw. |
Overrides
Remove(View)
Removes a subview added via Add(View) or Add(View[]) from this View.
Declaration
public override void Remove(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view |
Overrides
RemoveAll()
Removes all subviews (children) added via Add(View) or Add(View[]) from this View.
Declaration
public override void RemoveAll()
Overrides
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize