C# Class ICSharpCode.TextEditor.Document.StringTextBufferStrategy

Simple implementation of the ITextBuffer interface implemented using a string. Only for fall-back purposes.
Inheritance: ITextBufferStrategy
Exibir arquivo Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
CreateTextBufferFromFile ( string fileName ) : ITextBufferStrategy
GetCharAt ( int offset ) : char
GetText ( int offset, int length ) : string
Insert ( int offset, string text ) : void
Remove ( int offset, int length ) : void
Replace ( int offset, int length, string text ) : void
SetContent ( string text ) : void
StringTextBufferStrategy ( ) : System

Private Methods

Method Description
StringTextBufferStrategy ( string fileName ) : System

Method Details

CreateTextBufferFromFile() public static method

public static CreateTextBufferFromFile ( string fileName ) : ITextBufferStrategy
fileName string
return ITextBufferStrategy

GetCharAt() public method

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

GetText() public method

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

Insert() public method

public Insert ( int offset, string text ) : void
offset int
text string
return void

Remove() public method

public Remove ( int offset, int length ) : void
offset int
length int
return void

Replace() public method

public Replace ( int offset, int length, string text ) : void
offset int
length int
text string
return void

SetContent() public method

public SetContent ( string text ) : void
text string
return void

StringTextBufferStrategy() public method

public StringTextBufferStrategy ( ) : System
return System