Esempio n. 1
0
 //#>>delete
 internal BodyElement(Forms::HtmlElement elem)
     : base(elem.DomElement)
 {
     if (elem.TagName.ToLower() != "body")
     {
         throw new System.ArgumentException("指定した要素は body 要素ではありません。", "elem");
     }
 }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            IWrapper wrapper = obj as IWrapper;

            if (wrapper != null)
            {
                return(this.instance == wrapper.Value);
            }

            Forms::HtmlDocument doc = obj as Forms::HtmlDocument;

            if (obj != null)
            {
                return(this.instance == doc.DomDocument);
            }

            Forms::HtmlWindow win = obj as Forms::HtmlWindow;

            if (win != null)
            {
                return(this.instance == win.DomWindow);
            }

            Forms::HtmlElement elem = obj as Forms::HtmlElement;

            if (elem != null)
            {
                return(this.instance == elem.DomElement);
            }

            Forms::HtmlHistory hist = obj as Forms::HtmlHistory;

            if (hist != null)
            {
                return(this.instance == hist.DomHistory);
            }

            return(this.instance == obj);
        }