C# 클래스 Microsoft.Languages.Editor.Text.TextRangeExtensions

파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
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

메소드 상세

GetText() 공개 정적인 메소드

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

GetText() 공개 정적인 메소드

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

ToSnapshotSpan() 공개 정적인 메소드

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

ToSpan() 공개 정적인 메소드

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

ToTextRange() 공개 정적인 메소드

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