IVsIntellisenseHost.GetContextSelection(TextSpan[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取相对于上下文缓冲区的选定内容。
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
参数
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
C++
从 singlefileeditor:
HRESULT IVsIntellisenseHost::GetContextSelection([out] TextSpan *pSelectionSpan);