C# Class Microsoft.Languages.Editor.Text.TextRangeExtensions

Afficher le fichier Open project: Microsoft/RTVS

Méthodes publiques

Méthode Description
GetText ( this range, ITextBuffer textBuffer ) : string
GetText ( this range, ITextSnapshot snapshot ) : string
ToSnapshotSpan ( this range, ITextSnapshot snapshot ) : SnapshotSpan

Converts text range to the editor snapshot span

ToSpan ( this range ) : Span

Converts text range to the editor span

ToTextRange ( this span ) : ITextRange

Converts text range to the editor span

Method Details

GetText() public static méthode

public static GetText ( this range, ITextBuffer textBuffer ) : string
range this
textBuffer ITextBuffer
Résultat string

GetText() public static méthode

public static GetText ( this range, ITextSnapshot snapshot ) : string
range this
snapshot ITextSnapshot
Résultat string

ToSnapshotSpan() public static méthode

Converts text range to the editor snapshot span
public static ToSnapshotSpan ( this range, ITextSnapshot snapshot ) : SnapshotSpan
range this
snapshot ITextSnapshot
Résultat SnapshotSpan

ToSpan() public static méthode

Converts text range to the editor span
public static ToSpan ( this range ) : Span
range this
Résultat Span

ToTextRange() public static méthode

Converts text range to the editor span
public static ToTextRange ( this span ) : ITextRange
span this
Résultat ITextRange