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

ファイルを表示 Open project: Microsoft/RTVS

Public Methods

Method 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 method

public static GetText ( this range, ITextBuffer textBuffer ) : string
range this
textBuffer ITextBuffer
return string

GetText() public static method

public static GetText ( this range, ITextSnapshot snapshot ) : string
range this
snapshot ITextSnapshot
return string

ToSnapshotSpan() public static method

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

ToSpan() public static method

Converts text range to the editor span
public static ToSpan ( this range ) : Span
range this
return Span

ToTextRange() public static method

Converts text range to the editor span
public static ToTextRange ( this span ) : ITextRange
span this
return ITextRange