VsTextViewClass.GetSelectionSpan(TextSpan[]) Method

Definition

Returns the text span associated with a selection.

C++/CX
public:
 virtual int GetSelectionSpan(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetSelectionSpan;

Parameters

pSpan
TextSpan[]

[out] The span information

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022