C# Class ICSharpCode.TextEditor.Document.DocumentFactory

This interface represents a container which holds a text sequence and all necessary information about it. It is used as the base for a text editor.
ファイルを表示 Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
CreateDocument ( ) : IDocument Creates a new IDocument object. Only create IDocument with this method.
CreateFromFile ( string fileName ) : IDocument

Creates a new document and loads the given file

CreateFromTextBuffer ( ITextBufferStrategy textBuffer ) : IDocument

Creates a new document and loads the given file

Method Details

CreateDocument() public method

Creates a new IDocument object. Only create IDocument with this method.
public CreateDocument ( ) : IDocument
return IDocument

CreateFromFile() public method

Creates a new document and loads the given file
public CreateFromFile ( string fileName ) : IDocument
fileName string
return IDocument

CreateFromTextBuffer() public method

Creates a new document and loads the given file
public CreateFromTextBuffer ( ITextBufferStrategy textBuffer ) : IDocument
textBuffer ITextBufferStrategy
return IDocument