IVsTextSpanSet::GetAt Method (Int32, array<TextSpan>^)

 

Returns a requested text span.

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

int GetAt(
	int iEl,
	array<TextSpan>^ pSpan
)

Parameters

iEl
Type: System::Int32

[in] Integer containing the text span element number.

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

[out] Pointer to a text span object.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsTextSpanSet::GetAt(
   [in] LONG iEl, 
   [out, retval] TextSpan * pSpan
);

The iEl parameter is a zero based index less than the count returned in GetCount.

Return to top
Show: