IVsTextSpanSet.GetAt(Int32, 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 a requested text span.
public:
int GetAt(int iEl, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
public:
int GetAt(int iEl, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
int GetAt(int iEl, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpan);
public int GetAt (int iEl, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpan);
abstract member GetAt : int * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function GetAt (iEl As Integer, pSpan As TextSpan()) As Integer
Parameters
- iEl
- Int32
[in] Integer containing the text span element number.
- pSpan
- TextSpan[]
[out] Pointer to a text span object.
Returns
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.