public void get_ownerDocument(PHTMLDocumentAction y) { // type safety out the window.. var doc = (IHTMLDocument)(object)this.InternalElement.ownerDocument; y( (PIHTMLDocument)doc ); }