C# Class Microsoft.VisualStudio.Editor.Mocks.TextDocumentMock

Inheritance: ITextDocument
显示文件 Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Reload ( ) : ReloadResult
Reload ( EditOptions options ) : ReloadResult
Rename ( string newFilePath ) : void
Save ( ) : void
SaveAs ( string filePath, bool overwrite ) : void
SaveAs ( string filePath, bool overwrite, IContentType newContentType ) : void
SaveAs ( string filePath, bool overwrite, bool createFolder ) : void
SaveAs ( string filePath, bool overwrite, bool createFolder, IContentType newContentType ) : void
SaveCopy ( string filePath, bool overwrite ) : void
SaveCopy ( string filePath, bool overwrite, bool createFolder ) : void
SetEncoderFallback ( EncoderFallback fallback ) : void
TextDocumentMock ( ITextBuffer textBuffer, string filePath ) : System
UpdateDirtyState ( bool isDirty, System.DateTime lastContentModifiedTime ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Reload() public method

public Reload ( ) : ReloadResult
return ReloadResult

Reload() public method

public Reload ( EditOptions options ) : ReloadResult
options EditOptions
return ReloadResult

Rename() public method

public Rename ( string newFilePath ) : void
newFilePath string
return void

Save() public method

public Save ( ) : void
return void

SaveAs() public method

public SaveAs ( string filePath, bool overwrite ) : void
filePath string
overwrite bool
return void

SaveAs() public method

public SaveAs ( string filePath, bool overwrite, IContentType newContentType ) : void
filePath string
overwrite bool
newContentType IContentType
return void

SaveAs() public method

public SaveAs ( string filePath, bool overwrite, bool createFolder ) : void
filePath string
overwrite bool
createFolder bool
return void

SaveAs() public method

public SaveAs ( string filePath, bool overwrite, bool createFolder, IContentType newContentType ) : void
filePath string
overwrite bool
createFolder bool
newContentType IContentType
return void

SaveCopy() public method

public SaveCopy ( string filePath, bool overwrite ) : void
filePath string
overwrite bool
return void

SaveCopy() public method

public SaveCopy ( string filePath, bool overwrite, bool createFolder ) : void
filePath string
overwrite bool
createFolder bool
return void

SetEncoderFallback() public method

public SetEncoderFallback ( EncoderFallback fallback ) : void
fallback System.Text.EncoderFallback
return void

TextDocumentMock() public method

public TextDocumentMock ( ITextBuffer textBuffer, string filePath ) : System
textBuffer ITextBuffer
filePath string
return System

UpdateDirtyState() public method

public UpdateDirtyState ( bool isDirty, System.DateTime lastContentModifiedTime ) : void
isDirty bool
lastContentModifiedTime System.DateTime
return void