This commit is contained in:
2010-06-23 18:16:06 +00:00
parent 7108411a49
commit edfc3d71b0
8 changed files with 255 additions and 57 deletions

View File

@@ -17,7 +17,9 @@ namespace Volian.Controls.Library
{
if (_LinkInfoText == null) return;
// First parse the string
_LinkInfoText = _LinkInfoText.Replace(@"\v ", "");
if (_LinkInfoText.Contains(@"\v"))
throw new Exception("LinkText.ParseLink found RTF token");
//_LinkInfoText = _LinkInfoText.Replace(@"\v ", ""); // this is not needed because this is selected Text does not contain RTF tokens
// for tran : "2, #, #, # and 4#Link:TransitionRange:2 10 173 166"
Match m = Regex.Match(_LinkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
_MyValue = m.Groups[1].Value;