IVsIntellisenseHost.GetContextSelection(TextSpan[]) Methode

Definition

Ruft die Auswahl relativ zum Kontextpuffer ab.

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

Parameter

pSelectionSpan
TextSpan[]

[out] TextSpan Definieren der Kontext Auswahl.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

C++

Aus singlefileeditor. idl:

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

Gilt für