VsTextViewClass::GetSelectionSpan Method (array<TextSpan>^)

 

Returns the text span associated with a selection.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int GetSelectionSpan(
	array<TextSpan>^ pSpan
)

Parameters

pSpan
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

[out] The span information

Return Value

Type: System::Int32

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

Return to top
Show: