C# Класс AvalonStudio.TextEditor.Document.StringTextSource

Наследование: ITextSource
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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