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