/// <summary> /// Clear the collection /// </summary> public void Clear() { _list.Clear(); TopNode.RemoveAll(); if (_cells != null) { _cells.IsRichText = false; } }
/// <summary> /// Removes all items in the collection /// </summary> public void Clear() { _list.Clear(); TopNode.RemoveAll(); }
/// <summary> /// Remove all mentions from the collection /// </summary> internal void Clear() { _mentionList.Clear(); TopNode.RemoveAll(); }
/// <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)); }