Udostępnij za pośrednictwem


IVsTextLineMarker.GetCurrentSpan(TextSpan[]) Method

Definition

Returns the current position of the text marker.

public:
 int GetCurrentSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
public:
 int GetCurrentSpan(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
int GetCurrentSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpan);
public int GetCurrentSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpan);
abstract member GetCurrentSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function GetCurrentSpan (pSpan As TextSpan()) As Integer

Parameters

pSpan
TextSpan[]

[out] Pointer to the range of text that the marker covers. The text span for a marker is a set of two [line, index] coordinates. This structure is allocated by the caller.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextLineMarker::GetCurrentSpan(  
   [out] TextSpan *pSpan  
);  

Use this method to determine the current extent of a marker.

Applies to