private static List <IAttributedTextRun> CreateRuns( NSAttributedString target, TextWriter writer) { var runs = new List <IAttributedTextRun>(); target.EnumerateAttributes(new NSRange(0, target.Length), NSAttributedStringEnumeration.None, (NSDictionary attrs, NSRange range, ref bool stop) => { stop = HandleAttributes(runs, writer, target, attrs, range); }); return(runs); }