public static List<string> GetLinesAsText( DrawingInfo info, bool drawCursor )
        {
            var lines = new List<string>();

             foreach( var line in info.Lines )
             {
            string lineText = "";
            foreach( var span in line.Spans )
            {
               lineText += span.Text;
            }

            lines.Add( lineText );
             }

             if( drawCursor )
             {
            string line = lines[ (int)info.CursorPosition.Y ];
            line = line.Substring( 0, (int)info.CursorPosition.X ) + "|" + line.Substring( (int)info.CursorPosition.X );
            lines[ (int)info.CursorPosition.Y ] = line;
             }

             return lines;
        }
 public static List<string> GetLinesAsText( DrawingInfo info )
 {
     return GetLinesAsText( info, false );
 }