コード例 #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);
        }
コード例 #2
0
ファイル: SUIHtmlDiv.cs プロジェクト: a19284/SmartUI
 public SUIHtmlDiv(SUIHtmlControlBase ctrl)
     : base(ctrl)
 {
     divElement = (IHTMLDivElement)ctrl.HtmlElement;
 }
コード例 #3
0
ファイル: SUIHtmlDiv.cs プロジェクト: a19284/SmartUI
 public SUIHtmlDiv(SUIHtmlDocument _doc, IHTMLElement _element)
     : base(_doc, _element)
 {
     divElement = (IHTMLDivElement)_element;
 }
コード例 #4
0
ファイル: Div.cs プロジェクト: dineshkummarc/itin-r23136
 /// <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)
 {
 }
コード例 #5
0
 public SUIHtmlDiv(SUIHtmlControlBase ctrl)
     : base(ctrl)
 {
     divElement = (IHTMLDivElement)ctrl.HtmlElement;
 }
コード例 #6
0
 public SUIHtmlDiv(SUIHtmlDocument _doc, IHTMLElement _element)
     : base(_doc, _element)
 {
     divElement = (IHTMLDivElement)_element;
 }
コード例 #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))
 {
 }
コード例 #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)
 {
 }