This commit is contained in:
@@ -581,7 +581,15 @@ namespace Volian.Controls.Library
|
||||
e.Style.BackColor = solid;
|
||||
|
||||
// check whether the cell contains RTF
|
||||
string rtfText = this.GetDataDisplay(e.Row, e.Col).Replace(@"\~",@"\u160?");
|
||||
// TODO: Can we do DisplayText() in here??
|
||||
//DisplayText(ItemInfo itemInfo, string text, bool colorLinks)
|
||||
string rtfText = this.GetDataDisplay(e.Row, e.Col).Replace(@"\~", @"\u160?");
|
||||
GridItem gi = Parent as GridItem;
|
||||
if (gi != null)
|
||||
{
|
||||
DisplayText dt = new DisplayText(gi.MyItemInfo, rtfText, true);
|
||||
rtfText = dt.StartText;
|
||||
}
|
||||
if (rtfText.StartsWith(@"{\rtf"))
|
||||
{
|
||||
// it does, so draw background
|
||||
@@ -2160,9 +2168,9 @@ namespace Volian.Controls.Library
|
||||
if (this[r, c] != null)
|
||||
{
|
||||
string strp = DisplayText.StaticStripRtfCommands((string)this[r, c]);
|
||||
sb.Append(strp.Replace(@"\r\n", " "));
|
||||
sb.Append(strp.Replace("\r\n", " "));
|
||||
}
|
||||
sb.Append(@"\r\n");
|
||||
sb.Append("\r\n");
|
||||
}
|
||||
c = c + 1;
|
||||
if (c == w)
|
||||
|
Reference in New Issue
Block a user