Пример #1
0
        public static void DrawString(string text, PointF point, Color color, Font font = null, SizeF?availableSize = null)
        {
            var str = font.AttributedString(text);

            str.AddAttribute(ForegroundColorAttribute, color.ToNSUI(), new NSRange(0, text.Length));
            DrawString(str, point, availableSize);
        }
Пример #2
0
 public static SizeF MeasureString(string text, Font font = null, SizeF?availableSize = null)
 {
     return(MeasureString(font.AttributedString(text), availableSize));
 }