Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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 );
		}
Exemplo n.º 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 );
		}