/// <summary> /// This function helps to support MSHTML. /// </summary> /// <param name="element"></param> internal static void Initialize(IHTMLObjectElement element) { // _clsidForHost = "SharpCanvas.Host.mshtml"; string clsidString = string.Format("CLSID:{0}", _clsidForContext); ((IHTMLElement) element).setAttribute("classid", clsidString, 0); }
/// <summary> /// This method should be called only in IE environment and the main intent of this method is to add necessary behavior to the object /// </summary> /// <param name="element"></param> internal static void Initialize(IHTMLObjectElement element) { string clsidString = string.Format("CLSID:{0}", _clsidForContext); ((IHTMLElement) element).setAttribute("classid", clsidString, 0); }