Пример #1
0
        public void SetFont(Range <int> range, Font font)
        {
            var nsrange = range.ToNS();

            Control.SetFont(font.ToNS(), nsrange);
            var attr = font.Attributes();

            if (attr != null && attr.Count > 0)
            {
                Control.TextStorage.AddAttributes(attr, nsrange);
            }
        }