Interface ICellSurfaceResize
Adds a method to support resizing a surface.
Namespace: SadConsole
Assembly: SadConsole.dll
Syntax
public interface ICellSurfaceResize
Methods
Resize(int, int, bool)
Resizes the surface and view to the specified width and height. This can destroy the original backing array.
Declaration
void Resize(int width, int height, bool clear)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The width of the surface and view. |
| int | height | The height of the surface and view. |
| bool | clear | When true, indicates each cell should be reset to the default values. |
Resize(int, int, int, int, bool)
Resizes the surface to the specified width and height. This can destroy the original backing array.
Declaration
void Resize(int viewWidth, int viewHeight, int totalWidth, int totalHeight, bool clear)
Parameters
| Type | Name | Description |
|---|---|---|
| int | viewWidth | The viewable width of the surface. |
| int | viewHeight | The viewable height of the surface. |
| int | totalWidth | The maximum width of the surface. |
| int | totalHeight | The maximum height of the surface. |
| bool | clear | When true, indicates each cell should be reset to the default values. |