Beispiel #1
0
        public Size Measure(FormattedText formattedText)
        {
            if (formattedText.Text == null)
            {
                return(Size.Empty);
            }

            var ft = formattedText.ToWpf();

            return(new Size(ft.Width, ft.Height));
        }
Beispiel #2
0
        public Size Measure(FormattedText formattedText)
        {
            if (formattedText.Text == null)
            {
                return(Size.Empty);
            }

            var ft = formattedText.ToWpf();

            return(new Size(ft.WidthIncludingTrailingWhitespace, ft.Height));
        }