BracePairTag Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a tag associated with a brace pair.
public BracePairTag (Microsoft.VisualStudio.Text.SnapshotSpan? start, Microsoft.VisualStudio.Text.SnapshotSpan? end);
new Microsoft.VisualStudio.Text.Tagging.BracePairTag : Nullable<Microsoft.VisualStudio.Text.SnapshotSpan> * Nullable<Microsoft.VisualStudio.Text.SnapshotSpan> -> Microsoft.VisualStudio.Text.Tagging.BracePairTag
Public Sub New (start As Nullable(Of SnapshotSpan), end As Nullable(Of SnapshotSpan))
Parameters
- start
- Nullable<SnapshotSpan>
The position of the opening brace position. If null, indicates an invalid brace pair with only an ending brace.
- end
- Nullable<SnapshotSpan>
The position of the closing brace position. If null, indicates an invalid brace pair with only an opening brace.
Exceptions
thrown when both start and end position are null
Remarks
This tag supports two pair types. When start and end positions are supplied, the tag indicates a valid brace pair match. If either start or end position is null, the tag indicates an invalid brace pair match.