IVsTextSpanSet.GetAt Method

Returns a requested text span.

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

Syntax

'宣言
Function GetAt ( _
    iEl As Integer, _
    <OutAttribute> pSpan As TextSpan() _
) As Integer
'使用
Dim instance As IVsTextSpanSet
Dim iEl As Integer
Dim pSpan As TextSpan()
Dim returnValue As Integer

returnValue = instance.GetAt(iEl, pSpan)
int GetAt(
    int iEl,
    TextSpan[] pSpan
)
int GetAt(
    [InAttribute] int iEl, 
    [OutAttribute] array<TextSpan>^ pSpan
)
function GetAt(
    iEl : int, 
    pSpan : TextSpan[]
) : int

Parameters

  • iEl
    Type: System.Int32

    [in] Integer containing the text span element number.

  • pSpan
    Type: []

    [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.

Remarks

COM Signature

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.

Permissions

See Also

Reference

IVsTextSpanSet Interface

IVsTextSpanSet Members

Microsoft.VisualStudio.TextManager.Interop Namespace