Table of Contents

Method TrySplitTile

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

TrySplitTile(int, int, out TileView)

Converts of Tiles element idx from a regular View to a new nested TileView the specified numberOfPanels. Returns false if the element already contains a nested view.

public bool TrySplitTile(int idx, int numberOfPanels, out TileView result)

Parameters

idx int

The element of Tiles that is to be subdivided.

numberOfPanels int

The number of panels that the Tile should be split into

result TileView

The new nested TileView.

Returns

bool

true if a View was converted to a new nested TileView. false if it was already a nested TileView

Remarks

After successful splitting, the old contents will be moved to the resultTileView 's first tile.