Compartir a través de


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

Definition

Highlights the matching brace in a language construct.

public:
 virtual int HighlightMatchingBrace(System::UInt32 dwFlags, System::UInt32 cSpans, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ rgBaseSpans) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::HighlightMatchingBrace;
public:
 virtual int HighlightMatchingBrace(System::UInt32 dwFlags, System::UInt32 cSpans, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ rgBaseSpans);
public:
 virtual int HighlightMatchingBrace(unsigned int dwFlags, unsigned int cSpans, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ rgBaseSpans) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::HighlightMatchingBrace;
 virtual int HighlightMatchingBrace(unsigned int dwFlags, unsigned int cSpans, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & rgBaseSpans);
public virtual int HighlightMatchingBrace (uint dwFlags, uint cSpans, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] rgBaseSpans);
abstract member HighlightMatchingBrace : uint32 * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
override this.HighlightMatchingBrace : uint32 * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable 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.

Implements

Applies to