共用方式為


IVsTextViewFilter.GetPairExtents(Int32, Int32, TextSpan[]) Method

Definition

Returns the location of a matching pair item, given the location of the first item.

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

Parameters

iLine
Int32

[in] Integer containing the line index of the first item in the pair.

iIndex
Int32

[in] Integer containing the column index of the first item in the pair.

pSpan
TextSpan[]

[out] Pointer to a text span that identifies the location of the second pair item.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextViewFilter::GetPairExtents(  
   [in] long iLine,  
   [in] CharIndex iIndex,  
   [out] TextSpan * pSpan  
);  

Applies to