コード例 #1
0
        public override Size Measure(ConsoleRenderer renderer, Size maxSize)
        {
            if (renderer == null)
            {
                throw new ArgumentNullException(nameof(renderer));
            }

            if (maxSize == null)
            {
                throw new ArgumentNullException(nameof(maxSize));
            }

            if (Span == null)
            {
                return(new Size(0, 0));
            }

            return(ConsoleRenderer.MeasureSpan(Span, maxSize));
        }