Пример #1
0
 /// <summary>
 /// スタックをクリアする
 /// </summary>
 public static void Clear()
 {
     if (Mentions != null)
     {
         Mentions.Clear();
     }
 }
Пример #2
0
 /// <summary>
 /// Edit the Text of an existing comment with mentions
 /// </summary>
 /// <param name="newTextWithFormats">A string with format placeholders - same as in string.Format. Index in these should correspond to an index in the <paramref name="personsToMention"/> array.</param>
 /// <param name="personsToMention">A params array of <see cref="ExcelThreadedCommentPerson"/>. Their DisplayName property will be used to replace the format placeholders.</param>
 public void EditText(string newTextWithFormats, params ExcelThreadedCommentPerson[] personsToMention)
 {
     Mentions.Clear();
     MentionsHelper.InsertMentions(this, newTextWithFormats, personsToMention);
     _thread.OnCommentThreadChanged();
 }
Пример #3
0
 /// <summary>
 /// Edit the Text of an existing comment
 /// </summary>
 /// <param name="newText"></param>
 public void EditText(string newText)
 {
     Mentions.Clear();
     Text = newText;
     _thread.OnCommentThreadChanged();
 }