public override void SetBufferContents(Coordinates origin, PS.BufferCell[,] contents) { if (contents == null) { throw new ArgumentNullException("contents"); } FN.BufferCell[,] r = new FN.BufferCell[contents.GetLength(0), contents.GetLength(1)]; for (int i = 0; i < contents.GetLength(0); ++i) { for (int j = 0; j < contents.GetLength(1); ++j) { r[i, j] = ToBufferCell(contents[i, j]); } } Far.Api.UI.SetBufferContents(ToPoint(origin), r); }
static PS.BufferCell ToBufferCell(FN.BufferCell cell) { return(new PS.BufferCell(cell.Character, cell.ForegroundColor, cell.BackgroundColor, (PS.BufferCellType)cell.BufferCellType)); }
public abstract void SetBufferContents(Point origin, BufferCell[,] contents);
/// public abstract void SetBufferContents(Place rectangle, BufferCell fill);
/// public abstract void ScrollBufferContents(Place source, Point destination, Place clip, BufferCell fill);