Пример #1
0
 /// <summary>
 /// This will insert a node at the given position
 /// </summary>
 /// <param name="index">The position at which to insert the node.</param>
 /// <param name="node">The node to insert.</param>
 public void Insert(int index, HtmlNode node)
 {
     if (mParent != null)
     {
         node.SetParent(mParent);
     }
     base.InnerList.Insert(index, node);
 }
Пример #2
0
 /// <summary>
 /// This will add a node to the collection.
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public int Add(HtmlNode node)
 {
     if (mParent != null)
     {
         node.SetParent(mParent);
     }
     return(base.List.Add(node));
 }
Пример #3
0
		/// <summary>
		/// This will insert a node at the given position
		/// </summary>
		/// <param name="index">The position at which to insert the node.</param>
		/// <param name="node">The node to insert.</param>
		public void Insert(int index,HtmlNode node)
		{
			if( mParent != null ) node.SetParent( mParent );
			base.InnerList.Insert( index , node );
		}
Пример #4
0
		/// <summary>
		/// This will add a node to the collection.
		/// </summary>
		/// <param name="node"></param>
		/// <returns></returns>
		public int Add(HtmlNode node)
		{
			if( mParent != null ) node.SetParent( mParent );
			return base.List.Add( node );
		}