C# Class RazorPad.UI.Editors.AvalonEditDocumentAdapter

Wraps the AvalonEdit TextDocument to provide the IDocument interface.
Inheritance: IDocument
Afficher le fichier Open project: RazorPad/RazorPad

Méthodes publiques

Méthode Description
AvalonEditDocumentAdapter ( ) : System

Creates a new document.

AvalonEditDocumentAdapter ( TextDocument document, IServiceProvider parentServiceProvider ) : System

Creates a new AvalonEditDocumentAdapter instance.

CreateAnchor ( int offset ) : ITextAnchor
CreateReader ( ) : System.IO.TextReader
CreateReader ( int offset, int length ) : System.IO.TextReader
CreateSnapshot ( ) : ITextBuffer
CreateSnapshot ( int offset, int length ) : ITextBuffer
EndUndoableAction ( ) : void
GetCharAt ( int offset ) : char
GetLine ( int lineNumber ) : IDocumentLine
GetLineForOffset ( int offset ) : IDocumentLine
GetService ( Type serviceType ) : object
GetText ( int offset, int length ) : string
Insert ( int offset, string text ) : void
Insert ( int offset, string text, AnchorMovementType defaultAnchorMovementType ) : void
OffsetToPosition ( int offset ) : Location
OpenUndoGroup ( ) : IDisposable
PositionToOffset ( int line, int column ) : int
Remove ( int offset, int length ) : void
Replace ( int offset, int length, string newText ) : void
Replace ( int offset, int length, string newText, ICSharpCode defaultAnchorMovementType ) : void
StartUndoableAction ( ) : void
ToLocation ( TextLocation position ) : Location
ToPosition ( Location location ) : TextLocation

Private Methods

Méthode Description
AttachEvents ( ) : void
DetachEvents ( ) : void
document_Changed ( object sender, ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : void
document_Changing ( object sender, ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : void

Method Details

AvalonEditDocumentAdapter() public méthode

Creates a new document.
public AvalonEditDocumentAdapter ( ) : System
Résultat System

AvalonEditDocumentAdapter() public méthode

Creates a new AvalonEditDocumentAdapter instance.
public AvalonEditDocumentAdapter ( TextDocument document, IServiceProvider parentServiceProvider ) : System
document ICSharpCode.AvalonEdit.Document.TextDocument The document to wrap.
parentServiceProvider IServiceProvider The service provider used for GetService calls.
Résultat System

CreateAnchor() public méthode

public CreateAnchor ( int offset ) : ITextAnchor
offset int
Résultat ITextAnchor

CreateReader() public méthode

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

CreateReader() public méthode

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

CreateSnapshot() public méthode

public CreateSnapshot ( ) : ITextBuffer
Résultat ITextBuffer

CreateSnapshot() public méthode

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

EndUndoableAction() public méthode

public EndUndoableAction ( ) : void
Résultat void

GetCharAt() public méthode

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

GetLine() public méthode

public GetLine ( int lineNumber ) : IDocumentLine
lineNumber int
Résultat IDocumentLine

GetLineForOffset() public méthode

public GetLineForOffset ( int offset ) : IDocumentLine
offset int
Résultat IDocumentLine

GetService() public méthode

public GetService ( Type serviceType ) : object
serviceType System.Type
Résultat object

GetText() public méthode

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

Insert() public méthode

public Insert ( int offset, string text ) : void
offset int
text string
Résultat void

Insert() public méthode

public Insert ( int offset, string text, AnchorMovementType defaultAnchorMovementType ) : void
offset int
text string
defaultAnchorMovementType AnchorMovementType
Résultat void

OffsetToPosition() public méthode

public OffsetToPosition ( int offset ) : Location
offset int
Résultat Location

OpenUndoGroup() public méthode

public OpenUndoGroup ( ) : IDisposable
Résultat IDisposable

PositionToOffset() public méthode

public PositionToOffset ( int line, int column ) : int
line int
column int
Résultat int

Remove() public méthode

public Remove ( int offset, int length ) : void
offset int
length int
Résultat void

Replace() public méthode

public Replace ( int offset, int length, string newText ) : void
offset int
length int
newText string
Résultat void

Replace() public méthode

public Replace ( int offset, int length, string newText, ICSharpCode defaultAnchorMovementType ) : void
offset int
length int
newText string
defaultAnchorMovementType ICSharpCode
Résultat void

StartUndoableAction() public méthode

public StartUndoableAction ( ) : void
Résultat void

ToLocation() public static méthode

public static ToLocation ( TextLocation position ) : Location
position TextLocation
Résultat Location

ToPosition() public static méthode

public static ToPosition ( Location location ) : TextLocation
location Location
Résultat TextLocation