In This Article

StructureMatchResult Class

Stores a single result of a structure match operation.

public class StructureMatchResult : IStructureMatchResult, ITextRangeProvider
Inheritance:
object object
Implements:
IStructureMatchResult ITextRangeProvider

Constructors

StructureMatchResult(TextSnapshotRange)

Initializes a new instance of the StructureMatchResult class.

public StructureMatchResult(TextSnapshotRange snapshotRange)
Parameter Type Description
snapshotRange TextSnapshotRange

A TextSnapshotRange indicating the offset range of the match.

Properties

IsSource

Gets or sets whether this result is the match that occurred from the source offset.

public bool IsSource { get; set; }

Property Value

bool:

true if the result is the match that occurred from the source offset; otherwise, false.

MatchEdges

Gets or sets which edges of a IStructureMatchResult's range can cause the IStructureMatcher to match the result again.

public StructureMatchEdges MatchEdges { get; set; }

Property Value

StructureMatchEdges:

A StructureMatchEdges that specifies the valid edges.

NavigationSnapshotOffset

Gets or sets the TextSnapshotOffset to navigate for the match, if one is available.

public TextSnapshotOffset? NavigationSnapshotOffset { get; set; }

Property Value

TextSnapshotOffset?:

The TextSnapshotOffset to navigate for the match, if one is available.

SnapshotRange

Gets or sets a TextSnapshotRange indicating the offset range of the match.

public TextSnapshotRange SnapshotRange { get; set; }

Property Value

TextSnapshotRange:

A TextSnapshotRange indicating the offset range of the match.

Inherited Members