public static IntPair CalcDim(this IScreenSection Section)
        {
            var r1  = Section.ToRange();
            var dim = r1.ToDim();

            return(dim);
        }
        public static ScreenLocRange ToRepeatRange(this IScreenSection Section)
        {
            var range = Section.ToRange();

            // apply repeat to the section range.
            if (Section.RepeatCount > 1)
            {
                range = range.ApplyRepeat(Section.RepeatCount);
            }

            return(range);
        }