/// <summary> /// Initializes a new instance of the RichTextBoxWordColoringRuleCollection class, containing elements /// copied from another instance of RichTextBoxWordColoringRuleCollection /// </summary> /// <param name="items"> /// The RichTextBoxWordColoringRuleCollection whose elements are to be added to the new RichTextBoxWordColoringRuleCollection. /// </param> public RichTextBoxWordColoringRuleCollection(RichTextBoxWordColoringRuleCollection items) { this.AddRange(items); }
/// <summary> /// Adds the elements of another RichTextBoxWordColoringRuleCollection to the end of this RichTextBoxWordColoringRuleCollection. /// </summary> /// <param name="items"> /// The RichTextBoxWordColoringRuleCollection whose elements are to be added to the end of this RichTextBoxWordColoringRuleCollection. /// </param> public virtual void AddRange(RichTextBoxWordColoringRuleCollection items) { foreach (RichTextBoxWordColoringRule item in items) { this.List.Add(item); } }
/// <summary> /// /// </summary> /// <param name="collection"></param> public Enumerator(RichTextBoxWordColoringRuleCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }