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.Collections.IEnumerable
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, IEnumerable
Constructors
FrameView(ustring)
Initializes a new instance of the FrameView class with
a title and the result is suitable to have its X, Y, Width and Height properties computed.
Declaration
public FrameView(ustring title)
Parameters
Type | Name | Description |
---|---|---|
NStack.ustring | title | Title. |
FrameView(Rect, ustring)
Initializes a new instance of the FrameView class with
an absolute position and a title.
Declaration
public FrameView(Rect frame, ustring title)
Parameters
Type | Name | Description |
---|---|---|
Rect | frame | Frame. |
NStack.ustring | title | Title. |
FrameView(Rect, ustring, View[])
Declaration
public FrameView(Rect frame, ustring title, View[] views)
Parameters
Type | Name | Description |
---|---|---|
Rect | frame | Frame. |
NStack.ustring | title | Title. |
View[] | views | Views. |
Properties
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
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
Remarks
Always use Bounds (view-relative) when calling Redraw(Rect), NOT Frame (superview-relative).
Views should set the color that they want to use on entry, as otherwise this will inherit the last color that was set globaly on the driver.
Overrides of Redraw(Rect) must ensure they do not set Driver.Clip
to a clip region
larger than the region
parameter.
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.Collections.IEnumerable