VsTextViewClass.GetSelectionSpan(TextSpan[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.