public void Initialize(ISpellingChecker spellingChecker, MshtmlControl mshtmlControl, IHTMLDocument2 htmlDocument, ReplaceWord replaceWordFunction, MarkupRangeFilter filter, DamageFunction damageFunction) { _spellingChecker = spellingChecker; _mshtmlControl = mshtmlControl; _htmlDocument = htmlDocument; _filter = filter; _replaceWordFunction = replaceWordFunction; _damageFunction = damageFunction; }
/// <summary> /// Initialize word range for the entire body of the document /// </summary> /// <param name="mshtml">mshtml control</param> public MshtmlWordRange(MshtmlControl mshtmlControl) : this(mshtmlControl.HTMLDocument, false, null, null) { }