Exemplo n.º 1
0
 /// <summary>
 /// Clear the collection
 /// </summary>
 public void Clear()
 {
     _list.Clear();
     TopNode.RemoveAll();
     if (_cells != null)
     {
         _cells.IsRichText = false;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes all items in the collection
 /// </summary>
 public void Clear()
 {
     _list.Clear();
     TopNode.RemoveAll();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Remove all mentions from the collection
 /// </summary>
 internal void Clear()
 {
     _mentionList.Clear();
     TopNode.RemoveAll();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Rebuilds the collection with the elements sorted by the property StartIndex.
 /// </summary>
 internal void SortAndAddMentionsToXml()
 {
     _mentionList.Sort((x, y) => x.StartIndex.CompareTo(y.StartIndex));
     TopNode.RemoveAll();
     _mentionList.ForEach(x => TopNode.AppendChild(x.TopNode));
 }