public HtmlElement GetElementFromPoint(Point point)
 {
     System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element = this.NativeHtmlDocument2.ElementFromPoint(point.X, point.Y);
     if (element == null)
     {
         return(null);
     }
     return(new HtmlElement(this.ShimManager, element));
 }
 public HtmlElement GetElementById(string id)
 {
     System.Windows.Forms.UnsafeNativeMethods.IHTMLElement elementById = ((System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument3) this.NativeHtmlDocument2).GetElementById(id);
     if (elementById == null)
     {
         return(null);
     }
     return(new HtmlElement(this.ShimManager, elementById));
 }
 public HtmlElement CreateElement(string elementTag)
 {
     System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element = this.NativeHtmlDocument2.CreateElement(elementTag);
     if (element == null)
     {
         return(null);
     }
     return(new HtmlElement(this.ShimManager, element));
 }
예제 #4
0
 public HtmlElement InsertAdjacentElement(HtmlElementInsertionOrientation orient, HtmlElement newElement)
 {
     System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element = ((System.Windows.Forms.UnsafeNativeMethods.IHTMLElement2) this.NativeHtmlElement).InsertAdjacentElement(orient.ToString(), (System.Windows.Forms.UnsafeNativeMethods.IHTMLElement)newElement.DomElement);
     if (element == null)
     {
         return(null);
     }
     return(new HtmlElement(this.shimManager, element));
 }
 internal HtmlElement(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element)
 {
     this.htmlElement = element;
     this.shimManager = shimManager;
 }
예제 #6
0
 internal HtmlElement(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element)
 {
     this.htmlElement = element;
     this.shimManager = shimManager;
 }