private void loadWordPredictionContext() { var textAgent = _textInterface as MSWordTextControlAgent; if (textAgent != null) { var text = textAgent.GetTextFromDocument(false); _wordPredictionContext = Context.AppWordPredictionManager.ActiveWordPredictor.LoadContext(text); } }