ACAT.Lib.Extension.AppAgents.MSWord.MSWordAgentBase.loadWordPredictionContext C# (CSharp) 메소드

loadWordPredictionContext() 개인적인 메소드

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
리턴 void
        private void loadWordPredictionContext()
        {
            var textAgent = _textInterface as MSWordTextControlAgent;
            if (textAgent != null)
            {
                var text = textAgent.GetTextFromDocument(false);
                _wordPredictionContext = Context.AppWordPredictionManager.ActiveWordPredictor.LoadContext(text);
            }
        }