C# Class AvalonStudio.TextEditor.Document.StringTextSource

Inheritance: ITextSource
Afficher le fichier Open project: VitalElement/AvalonStudio Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty StringTextSource

Méthodes publiques

Méthode 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 méthode

public CreateReader ( ) : TextReader
Résultat System.IO.TextReader

CreateReader() public méthode

public CreateReader ( int offset, int length ) : TextReader
offset int
length int
Résultat System.IO.TextReader

CreateSnapshot() public méthode

public CreateSnapshot ( ) : ITextSource
Résultat ITextSource

CreateSnapshot() public méthode

public CreateSnapshot ( int offset, int length ) : ITextSource
offset int
length int
Résultat ITextSource

GetCharAt() public méthode

public GetCharAt ( int offset ) : char
offset int
Résultat char

GetText() public méthode

public GetText ( ISegment segment ) : string
segment ISegment
Résultat string

GetText() public méthode

public GetText ( int offset, int length ) : string
offset int
length int
Résultat string

IndexOf() public méthode

public IndexOf ( char c, int startIndex, int count ) : int
c char
startIndex int
count int
Résultat int

IndexOf() public méthode

public IndexOf ( string searchText, int startIndex, int count, System.StringComparison comparisonType ) : int
searchText string
startIndex int
count int
comparisonType System.StringComparison
Résultat int

IndexOfAny() public méthode

public IndexOfAny ( char anyOf, int startIndex, int count ) : int
anyOf char
startIndex int
count int
Résultat int

LastIndexOf() public méthode

public LastIndexOf ( char c, int startIndex, int count ) : int
c char
startIndex int
count int
Résultat int

LastIndexOf() public méthode

public LastIndexOf ( string searchText, int startIndex, int count, System.StringComparison comparisonType ) : int
searchText string
startIndex int
count int
comparisonType System.StringComparison
Résultat int

StringTextSource() public méthode

Creates a new StringTextSource with the given text.
public StringTextSource ( string text ) : System
text string
Résultat System

StringTextSource() public méthode

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

WriteTextTo() public méthode

public WriteTextTo ( TextWriter writer ) : void
writer System.IO.TextWriter
Résultat void

WriteTextTo() public méthode

public WriteTextTo ( TextWriter writer, int offset, int length ) : void
writer System.IO.TextWriter
offset int
length int
Résultat void

Property Details

Empty public_oe static_oe property

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