Share via


IVsTextView.HighlightMatchingBrace(UInt32, UInt32, TextSpan[]) Method

Definition

Highlights the matching brace in a language construct.

public:
 int HighlightMatchingBrace(System::UInt32 dwFlags, System::UInt32 cSpans, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ rgBaseSpans);
public:
 int HighlightMatchingBrace(unsigned int dwFlags, unsigned int cSpans, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ rgBaseSpans);
int HighlightMatchingBrace(unsigned int dwFlags, unsigned int cSpans, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & rgBaseSpans);
public int HighlightMatchingBrace (uint dwFlags, uint cSpans, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] rgBaseSpans);
abstract member HighlightMatchingBrace : uint32 * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function HighlightMatchingBrace (dwFlags As UInteger, cSpans As UInteger, rgBaseSpans As TextSpan()) As Integer

Parameters

dwFlags
UInt32

[in] Parameter is not used.

cSpans
UInt32

[in] Number of matching pairs to highlight within the text span.

rgBaseSpans
TextSpan[]

[in, size_is(cSpans)] Span of text to highlight within.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::HighlightMatchingBrace(  
   [in] DWORD dwFlags,  
   [in] ULONG cSpans,  
   [in, size_is(cSpans)] TextSpan *rgBaseSpans  
);  

Applies to