C# 클래스 AvalonStudio.TextEditor.Document.StringTextSource

상속: ITextSource
파일 보기 프로젝트 열기: VitalElement/AvalonStudio 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty StringTextSource

공개 메소드들

메소드 설명
CreateReader ( ) : TextReader
CreateReader ( int offset, int length ) : TextReader
CreateSnapshot ( ) : ITextSource
CreateSnapshot ( int offset, int length ) : ITextSource
GetCharAt ( int offset ) : char
GetText ( ISegment segment ) : string
GetText ( int offset, int length ) : string
IndexOf ( char c, int startIndex, int count ) : int
IndexOf ( string searchText, int startIndex, int count, System.StringComparison comparisonType ) : int
IndexOfAny ( char anyOf, int startIndex, int count ) : int
LastIndexOf ( char c, int startIndex, int count ) : int
LastIndexOf ( string searchText, int startIndex, int count, System.StringComparison comparisonType ) : int
StringTextSource ( string text ) : System

Creates a new StringTextSource with the given text.

StringTextSource ( string text, ITextSourceVersion version ) : System

Creates a new StringTextSource with the given text.

WriteTextTo ( TextWriter writer ) : void
WriteTextTo ( TextWriter writer, int offset, int length ) : void

메소드 상세

CreateReader() 공개 메소드

public CreateReader ( ) : TextReader
리턴 System.IO.TextReader

CreateReader() 공개 메소드

public CreateReader ( int offset, int length ) : TextReader
offset int
length int
리턴 System.IO.TextReader

CreateSnapshot() 공개 메소드

public CreateSnapshot ( ) : ITextSource
리턴 ITextSource

CreateSnapshot() 공개 메소드

public CreateSnapshot ( int offset, int length ) : ITextSource
offset int
length int
리턴 ITextSource

GetCharAt() 공개 메소드

public GetCharAt ( int offset ) : char
offset int
리턴 char

GetText() 공개 메소드

public GetText ( ISegment segment ) : string
segment ISegment
리턴 string

GetText() 공개 메소드

public GetText ( int offset, int length ) : string
offset int
length int
리턴 string

IndexOf() 공개 메소드

public IndexOf ( char c, int startIndex, int count ) : int
c char
startIndex int
count int
리턴 int

IndexOf() 공개 메소드

public IndexOf ( string searchText, int startIndex, int count, System.StringComparison comparisonType ) : int
searchText string
startIndex int
count int
comparisonType System.StringComparison
리턴 int

IndexOfAny() 공개 메소드

public IndexOfAny ( char anyOf, int startIndex, int count ) : int
anyOf char
startIndex int
count int
리턴 int

LastIndexOf() 공개 메소드

public LastIndexOf ( char c, int startIndex, int count ) : int
c char
startIndex int
count int
리턴 int

LastIndexOf() 공개 메소드

public LastIndexOf ( string searchText, int startIndex, int count, System.StringComparison comparisonType ) : int
searchText string
startIndex int
count int
comparisonType System.StringComparison
리턴 int

StringTextSource() 공개 메소드

Creates a new StringTextSource with the given text.
public StringTextSource ( string text ) : System
text string
리턴 System

StringTextSource() 공개 메소드

Creates a new StringTextSource with the given text.
public StringTextSource ( string text, ITextSourceVersion version ) : System
text string
version ITextSourceVersion
리턴 System

WriteTextTo() 공개 메소드

public WriteTextTo ( TextWriter writer ) : void
writer System.IO.TextWriter
리턴 void

WriteTextTo() 공개 메소드

public WriteTextTo ( TextWriter writer, int offset, int length ) : void
writer System.IO.TextWriter
offset int
length int
리턴 void

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

Gets a text source containing the empty string.
public static StringTextSource,AvalonStudio.TextEditor.Document Empty
리턴 StringTextSource