Class FrameView
The FrameView is a container frame that draws a frame around the contents. It is similar to
a GroupBox in Windows.
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 class FrameView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
FrameView()
Declaration
public FrameView()
FrameView(ustring, Border)
Declaration
public FrameView(ustring title, Border border = null)
Parameters
Type | Name | Description |
---|---|---|
NStack.ustring | title | Title. |
Border | border | The Border. |
FrameView(Rect, ustring, View[], Border)
Declaration
public FrameView(Rect frame, ustring title = null, View[] views = null, Border border = null)
Parameters
Type | Name | Description |
---|---|---|
Rect | frame | Frame. |
NStack.ustring | title | Title. |
View[] | views | Views. |
Border | border | The Border. |
Properties
Border
Declaration
public override Border Border { get; set; }
Property Value
Type | Description |
---|---|
Border |
Overrides
Text
The text displayed by the Label.
Declaration
public override ustring Text { get; set; }
Property Value
Type | Description |
---|---|
NStack.ustring |
Overrides
TextAlignment
Controls the text-alignment property of the label, changing it will redisplay the Label.
Declaration
public override TextAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
TextAlignment | The text alignment. |
Overrides
Title
The title to be displayed for this FrameView.
Declaration
public ustring Title { get; set; }
Property Value
Type | Description |
---|---|
NStack.ustring | The title. |
Methods
Add(View)
Add the specified View to this container.
Declaration
public override void Add(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | View to add to this container |
Overrides
OnCanFocusChanged()
Declaration
public override void OnCanFocusChanged()
Overrides
OnEnter(View)
Declaration
public override bool OnEnter(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Redraw(Rect)
Declaration
public override void Redraw(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Rect | bounds |
Overrides
Remove(View)
Removes a View from this container.
Declaration
public override void Remove(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view |
Overrides
Remarks
RemoveAll()
Removes all Views from this container.
Declaration
public override void RemoveAll()
Overrides
Remarks
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize