Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1Editor Class / GetActiveXInstance Method
Example

In This Topic
    GetActiveXInstance Method
    In This Topic
    Gets the underlying ActiveX WebBrowser control.
    Syntax
    'Declaration
     
    Public Function GetActiveXInstance() As System.Object
    public System.object GetActiveXInstance()

    Return Value

    Reference to the ActiveX WebBrowser object.
    Remarks
    Use this method to get a reference to the IWebBrowser2 interface. For example, C1SpellChecker uses the IWebBrowser2 interface to support spelling in the C1Editor.
    Example
    Code below shows how to activate spell checking using C1SpellChecker and the GetActiveXInstance method.
    spellChecker.SetActiveSpellChecking(editor, editor.GetActiveXInstance(), true);
    See Also