C# Class AvalonStudio.TextEditor.Document.StringTextSource

Inheritance: ITextSource
Exibir arquivo Open project: VitalElement/AvalonStudio Class Usage Examples

Public Properties

Property Type Description
Empty StringTextSource

Public Methods

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

Method Details

CreateReader() public method

public CreateReader ( ) : TextReader
return System.IO.TextReader

CreateReader() public method

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

CreateSnapshot() public method

public CreateSnapshot ( ) : ITextSource
return ITextSource

CreateSnapshot() public method

public CreateSnapshot ( int offset, int length ) : ITextSource
offset int
length int
return ITextSource

GetCharAt() public method

public GetCharAt ( int offset ) : char
offset int
return char

GetText() public method

public GetText ( ISegment segment ) : string
segment ISegment
return string

GetText() public method

public GetText ( int offset, int length ) : string
offset int
length int
return string

IndexOf() public method

public IndexOf ( char c, int startIndex, int count ) : int
c char
startIndex int
count int
return int

IndexOf() public method

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

IndexOfAny() public method

public IndexOfAny ( char anyOf, int startIndex, int count ) : int
anyOf char
startIndex int
count int
return int

LastIndexOf() public method

public LastIndexOf ( char c, int startIndex, int count ) : int
c char
startIndex int
count int
return int

LastIndexOf() public method

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

StringTextSource() public method

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

StringTextSource() public method

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

WriteTextTo() public method

public WriteTextTo ( TextWriter writer ) : void
writer System.IO.TextWriter
return void

WriteTextTo() public method

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

Property Details

Empty public_oe static_oe property

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