Пример #1
0
        //====== 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);
        }
Пример #2
0
        //====== ctors

        public TextCanvas(TextArray textArray)
        {
            this.textArray = Verify.NotNull(textArray, nameof(textArray));
        }