Compartir a través de


VsTextViewClass.GetSelectionSpan(TextSpan[]) Method

Definition

Returns the text span associated with a selection.

public:
 virtual int GetSelectionSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetSelectionSpan;
public:
 virtual int GetSelectionSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
public:
 virtual int GetSelectionSpan(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetSelectionSpan;
 virtual int GetSelectionSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpan);
public virtual int GetSelectionSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpan);
abstract member GetSelectionSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
override this.GetSelectionSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable Function GetSelectionSpan (pSpan As TextSpan()) As Integer

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