/// <summary> /// Removes the first occurrence of a specific StyleCell from this StyleCellCollection. /// </summary> /// <param name="value"> /// The StyleCell value to remove from this StyleCellCollection. /// </param> public virtual void Remove(StyleCell value) { this.List.Remove(value); }
/// <summary> /// Return the zero-based index of the first occurrence of a specific value /// in this StyleCellCollection /// </summary> /// <param name="value"> /// The StyleCell value to locate in the StyleCellCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT value if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(StyleCell value) { return(this.List.IndexOf(value)); }
/// <summary> /// Inserts an element into the StyleCellCollection at the specified index /// </summary> /// <param name="index"> /// The index at which the StyleCell is to be inserted. /// </param> /// <param name="value"> /// The StyleCell to insert. /// </param> public virtual void Insert(int index, StyleCell value) { this.List.Insert(index, value); }
/// <summary> /// Adds an instance of type StyleCell to the end of this StyleCellCollection. /// </summary> /// <param name="value"> /// The StyleCell to be added to the end of this StyleCellCollection. /// </param> public virtual void Add(StyleCell value) { this.List.Add(value); }
/// <summary> /// Determines whether a specfic StyleCell value is in this StyleCellCollection. /// </summary> /// <param name="value"> /// The StyleCell value to locate in this StyleCellCollection. /// </param> /// <returns> /// true if value is found in this StyleCellCollection; /// false otherwise. /// </returns> public virtual bool Contains(StyleCell value) { return(this.List.Contains(value)); }
/// <summary> /// Return the zero-based index of the first occurrence of a specific value /// in this StyleCellCollection /// </summary> /// <param name="value"> /// The StyleCell value to locate in the StyleCellCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT value if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(StyleCell value) { return this.List.IndexOf(value); }
/// <summary> /// Determines whether a specfic StyleCell value is in this StyleCellCollection. /// </summary> /// <param name="value"> /// The StyleCell value to locate in this StyleCellCollection. /// </param> /// <returns> /// true if value is found in this StyleCellCollection; /// false otherwise. /// </returns> public virtual bool Contains(StyleCell value) { return this.List.Contains(value); }
/// <summary> /// Adds the elements of an array to the end of this StyleCellCollection. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the end of this StyleCellCollection. /// </param> public virtual void AddRange(StyleCell[] items) { foreach (StyleCell item in items) { this.List.Add(item); } }
/// <summary> /// Initializes a new instance of the StyleCellCollection class, containing elements /// copied from an array. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the new StyleCellCollection. /// </param> public StyleCellCollection(StyleCell[] items) { this.AddRange(items); }