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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public sealed class ToplevelContainer : Toplevel, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
| Improve this Doc View SourceToplevelContainer()
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
| Improve this Doc View SourceBorder
Declaration
public override Border Border { get; set; }
Property Value
Type | Description |
---|---|
Border |
Overrides
Methods
| Improve this Doc View SourceAdd(View)
Adds a subview (child) to this view.
Declaration
public override void Add(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view |
Overrides
| Improve this Doc View SourceOnCanFocusChanged()
Method invoked when the CanFocus property from a view is changed.
Declaration
public override void OnCanFocusChanged()
Overrides
| Improve this Doc View SourceRedraw(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
| Improve this Doc View SourceRemove(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
| Improve this Doc View SourceRemoveAll()
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