Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
Document..::..FindMatchedBracket Method (Int32)
Document Class See Also Send Feedback

Finds matched bracket from specified index.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

# Syntax

C#
    public int FindMatchedBracket(
    	int index
    )

Visual Basic
    Public Function FindMatchedBracket (
    	index As Integer
    ) As Integer

#### Parameters

index
  Type: System..::..Int32
  The index to start searching matched bracket.

#### Return Value

Type: Int32
Index of the matched bracket if found. Otherwise -1.

# Remarks

This method searches the matched bracket from specified index. If the character at specified index was not a sort of bracket, or if specified index points to a character which has no meaning on grammar (such as comment block, string literal, etc.), this method returns -1.

# See Also

Document Class
Document..::..Document Members
FindMatchedBracket Overload
Sgry.Azuki Namespace