Exemplo n.º 1
0
        public static bool IsDivElement(SUIHtmlControlBase ctrl)
        {
            bool itis = false;

            try
            {
                IHTMLDivElement span = ctrl.HtmlElement as mshtml.IHTMLDivElement;
                itis = true;
            }
            catch
            {
                itis = false;
            }
            return(itis);
        }
Exemplo n.º 2
0
 public SUIHtmlDiv(SUIHtmlControlBase ctrl)
     : base(ctrl)
 {
     divElement = (IHTMLDivElement)ctrl.HtmlElement;
 }
Exemplo n.º 3
0
 public SUIHtmlDiv(SUIHtmlDocument _doc, IHTMLElement _element)
     : base(_doc, _element)
 {
     divElement = (IHTMLDivElement)_element;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Div"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="htmlDivElement">The HTML div element.</param>
 public Div(DomContainer domContainer, IHTMLDivElement htmlDivElement)
     : base(domContainer, (IHTMLElement)htmlDivElement)
 {
 }
Exemplo n.º 5
0
 public SUIHtmlDiv(SUIHtmlControlBase ctrl)
     : base(ctrl)
 {
     divElement = (IHTMLDivElement)ctrl.HtmlElement;
 }
Exemplo n.º 6
0
 public SUIHtmlDiv(SUIHtmlDocument _doc, IHTMLElement _element)
     : base(_doc, _element)
 {
     divElement = (IHTMLDivElement)_element;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Div"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="htmlDivElement">The HTML div element.</param>
 public Div(DomContainer domContainer, IHTMLDivElement htmlDivElement) :
     base(domContainer, domContainer.NativeBrowser.CreateElement(htmlDivElement))
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Div"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="htmlDivElement">The HTML div element.</param>
 public Div(DomContainer domContainer, IHTMLDivElement htmlDivElement)
     : base(domContainer, (IHTMLElement)htmlDivElement)
 {
 }