IVsIntellisenseHost.GetContextSelection(TextSpan[]) 方法

定义

获取相对于上下文缓冲区的选定内容。

public:
 int GetContextSelection(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSelectionSpan);
public:
 int GetContextSelection(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSelectionSpan);
int GetContextSelection(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSelectionSpan);
public int GetContextSelection (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSelectionSpan);
abstract member GetContextSelection : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function GetContextSelection (pSelectionSpan As TextSpan()) As Integer

参数

pSelectionSpan
TextSpan[]

[out] TextSpan 定义上下文选择。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

C++

从 singlefileeditor:

HRESULT IVsIntellisenseHost::GetContextSelection([out] TextSpan *pSelectionSpan);

适用于