C# Class dnSpy.Text.Operations.TextStructureNavigator

Default navigator. A word is just one character. This one shouldn't be used at all, it's just the default one created by TextStructureNavigatorSelectorService if nothing else is found.
Inheritance: ITextStructureNavigator
Show file Open project: 0xd4d/dnSpy

Public Methods

Method Description
GetExtentOfWord ( SnapshotPoint currentPosition ) : TextExtent
GetSpanOfEnclosing ( SnapshotSpan activeSpan ) : SnapshotSpan
GetSpanOfFirstChild ( SnapshotSpan activeSpan ) : SnapshotSpan
GetSpanOfNextSibling ( SnapshotSpan activeSpan ) : SnapshotSpan
GetSpanOfPreviousSibling ( SnapshotSpan activeSpan ) : SnapshotSpan
TextStructureNavigator ( ITextBuffer textBuffer, IContentType contentType ) : System

Method Details

GetExtentOfWord() public method

public GetExtentOfWord ( SnapshotPoint currentPosition ) : TextExtent
currentPosition SnapshotPoint
return TextExtent

GetSpanOfEnclosing() public method

public GetSpanOfEnclosing ( SnapshotSpan activeSpan ) : SnapshotSpan
activeSpan SnapshotSpan
return SnapshotSpan

GetSpanOfFirstChild() public method

public GetSpanOfFirstChild ( SnapshotSpan activeSpan ) : SnapshotSpan
activeSpan SnapshotSpan
return SnapshotSpan

GetSpanOfNextSibling() public method

public GetSpanOfNextSibling ( SnapshotSpan activeSpan ) : SnapshotSpan
activeSpan SnapshotSpan
return SnapshotSpan

GetSpanOfPreviousSibling() public method

public GetSpanOfPreviousSibling ( SnapshotSpan activeSpan ) : SnapshotSpan
activeSpan SnapshotSpan
return SnapshotSpan

TextStructureNavigator() public method

public TextStructureNavigator ( ITextBuffer textBuffer, IContentType contentType ) : System
textBuffer ITextBuffer
contentType IContentType
return System