ICompletionPresenterProvider.GetOrCreate(ITextView) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回的实例 ICompletionPresenter ,该实例将承载给定的完成 ITextView 。 在 UI 线程上调用。
public:
Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::ICompletionPresenter ^ GetOrCreate(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.ICompletionPresenter GetOrCreate (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member GetOrCreate : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.ICompletionPresenter
Public Function GetOrCreate (textView As ITextView) As ICompletionPresenter
参数
- textView
- ITextView
将承载完成的文本视图。 完成操作在此视图的缓冲区上操作。
返回
注解
建议每次调用此方法时,重复使用 UI 来创建新的 UI。