//====== ctors public TextArraySlice(TextArray source, Rectangle viewArea) : base(source.Size.AsRectangle.Intersect(viewArea).Size) // TODO: source can be null { this.source = Verify.NotNull(source, nameof(source)); intersection = source.Size.AsRectangle.Intersect(viewArea); }
//====== ctors public TextCanvas(TextArray textArray) { this.textArray = Verify.NotNull(textArray, nameof(textArray)); }