ACAT.Lib.Extension.AppAgents.MSWord.MSWordAgentBase.loadWordPredictionContext C# (CSharp) Method

loadWordPredictionContext() private method

Loads the text from the active word document to the word prediction engine as temporary context for better word prediction results, that are more relevant to the active document
private loadWordPredictionContext ( ) : void
return void
        private void loadWordPredictionContext()
        {
            var textAgent = _textInterface as MSWordTextControlAgent;
            if (textAgent != null)
            {
                var text = textAgent.GetTextFromDocument(false);
                _wordPredictionContext = Context.AppWordPredictionManager.ActiveWordPredictor.LoadContext(text);
            }
        }