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