This commit is contained in:
parent
d9c6b536c9
commit
729c39a503
@ -1468,7 +1468,34 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion //Clipboard
|
#endregion //Clipboard
|
||||||
|
#region SearchableText
|
||||||
|
public string GetSearchableText()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
int r = 0;
|
||||||
|
int c = 0;
|
||||||
|
int w = Cols.Count;
|
||||||
|
int h = Rows.Count;
|
||||||
|
|
||||||
|
while (r < h)
|
||||||
|
{
|
||||||
|
CellRange cr = GetMergedRange(r, c);
|
||||||
|
if (cr.r1 == r && cr.c1 == c)
|
||||||
|
{
|
||||||
|
string strp = DisplayText.StaticStripRtfCommands((string)this[r, c]);
|
||||||
|
sb.Append(strp.Replace(@"\r\n", " "));
|
||||||
|
sb.Append(@"\r\n");
|
||||||
|
}
|
||||||
|
c = c + 1;
|
||||||
|
if (c == w)
|
||||||
|
{
|
||||||
|
c = 0;
|
||||||
|
r = r + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
#region Import / Export Grid
|
#region Import / Export Grid
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user