A document representing a source code file for refactoring.
Line and column counting starts at 1.
Offset counting starts at 0.

C# | Visual Basic | Visual C++ |
public interface IDocument : ITextSource, IServiceProvider
Public Interface IDocument _ Inherits ITextSource, IServiceProvider
public interface class IDocument : ITextSource, IServiceProvider

All Members | Methods | Properties | Events | ||
Icon | Member | Description |
---|---|---|
![]() | ChangeCompleted |
This event is called after a group of changes is completed.
|
![]() | CreateAnchor(Int32) |
Creates a new ITextAnchor at the specified offset.
|
![]() | CreateReader()()()() |
Creates a new TextReader to read from this text source.
(Inherited from ITextSource.) |
![]() | CreateReader(Int32, Int32) |
Creates a new TextReader to read from this text source.
(Inherited from ITextSource.) |
![]() | CreateSnapshot()()()() |
Creates an immutable snapshot of this text source.
Unlike all other methods in this interface, this method is thread-safe.
(Inherited from ITextSource.) |
![]() | CreateSnapshot(Int32, Int32) |
Creates an immutable snapshot of a part of this text source.
Unlike all other methods in this interface, this method is thread-safe.
(Inherited from ITextSource.) |
![]() | EndUndoableAction()()()() |
Ends the undoable action started with StartUndoableAction()()()().
|
![]() | FileName |
Gets the name of the file the document is stored in.
Could also be a non-existent dummy file name or null if no name has been set.
|
![]() | FileNameChanged |
Fired when the file name of the document changes.
|
![]() | GetCharAt(Int32) |
Gets a character at the specified position in the document.
(Inherited from ITextSource.) |
![]() | GetLineByNumber(Int32) |
Gets the document line with the specified number.
|
![]() | GetLineByOffset(Int32) |
Gets the document line that contains the specified offset.
|
![]() | GetLocation(Int32) |
Gets the location from an offset.
|
![]() | GetOffset(Int32, Int32) |
Gets the offset from a text location.
|
![]() | GetOffset(TextLocation) |
Gets the offset from a text location.
|
![]() | GetService(Type) | Gets the service object of the specified type. (Inherited from IServiceProvider.) |
![]() | GetText(Int32, Int32) |
Retrieves the text for a portion of the document.
(Inherited from ITextSource.) |
![]() | GetText(ISegment) |
Retrieves the text for a portion of the document.
(Inherited from ITextSource.) |
![]() | IndexOf(Char, Int32, Int32) |
Gets the index of the first occurrence of the character in the specified array.
(Inherited from ITextSource.) |
![]() | IndexOf(String, Int32, Int32, StringComparison) |
Gets the index of the first occurrence of the specified search text in this text source.
(Inherited from ITextSource.) |
![]() | IndexOfAny(array<Char>[]()[][], Int32, Int32) |
Gets the index of the first occurrence of any character in the specified array.
(Inherited from ITextSource.) |
![]() | Insert(Int32, String) |
Inserts text.
|
![]() | Insert(Int32, ITextSource) |
Inserts text.
|
![]() | Insert(Int32, String, AnchorMovementType) |
Inserts text.
|
![]() | Insert(Int32, ITextSource, AnchorMovementType) |
Inserts text.
|
![]() | LastIndexOf(Char, Int32, Int32) |
Gets the index of the last occurrence of the specified character in this text source.
(Inherited from ITextSource.) |
![]() | LastIndexOf(String, Int32, Int32, StringComparison) |
Gets the index of the last occurrence of the specified search text in this text source.
(Inherited from ITextSource.) |
![]() | LineCount |
Gets the number of lines in the document.
|
![]() | OpenUndoGroup()()()() |
Creates an undo group. Dispose the returned value to close the undo group.
|
![]() | Remove(Int32, Int32) |
Removes text.
|
![]() | Replace(Int32, Int32, String) |
Replaces text.
|
![]() | Replace(Int32, Int32, ITextSource) |
Replaces text.
|
![]() | StartUndoableAction()()()() |
Make the document combine the following actions into a single
action for undo purposes.
|
![]() | Text |
Gets/Sets the text of the whole document..
|
![]() | Text |
Gets the whole text as string.
(Inherited from ITextSource.) |
![]() | TextChanged |
This event is called directly after a change is applied to the document.
|
![]() | TextChanging |
This event is called directly before a change is applied to the document.
|
![]() | TextLength |
Gets the total text length.
(Inherited from ITextSource.) |
![]() | Version |
Gets a version identifier for this text source.
Returns null for unversioned text sources.
(Inherited from ITextSource.) |
![]() | WriteTextTo(TextWriter) |
Writes the text from this document into the TextWriter.
(Inherited from ITextSource.) |
![]() | WriteTextTo(TextWriter, Int32, Int32) |
Writes the text from this document into the TextWriter.
(Inherited from ITextSource.) |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238