ITextDocument.Reload ITextDocument.Reload ITextDocument.Reload Method

Definition

Overloads

Reload(EditOptions) Reload(EditOptions) Reload(EditOptions)

Reloads the contents of FilePath into TextBuffer, using the given EditOptions.

Reload() Reload() Reload()

Reloads the contents of FilePath into a TextBuffer.

Reload(EditOptions) Reload(EditOptions) Reload(EditOptions)

Reloads the contents of FilePath into TextBuffer, using the given EditOptions.

public Microsoft.VisualStudio.Text.ReloadResult Reload (Microsoft.VisualStudio.Text.EditOptions options);
abstract member Reload : Microsoft.VisualStudio.Text.EditOptions -> Microsoft.VisualStudio.Text.ReloadResult
Public Function Reload (options As EditOptions) As ReloadResult
Parameters
options
EditOptions EditOptions EditOptions

The options to use for the text buffer edit.

Returns
Exceptions

An I/O error occurred during file load.

Remarks

If the load fails, the contents of the ITextBuffer remains unchanged.

Reload() Reload() Reload()

Reloads the contents of FilePath into a TextBuffer.

public Microsoft.VisualStudio.Text.ReloadResult Reload ();
abstract member Reload : unit -> Microsoft.VisualStudio.Text.ReloadResult
Public Function Reload () As ReloadResult
Returns

A ReloadResult that indicates whether the reload took place and whether the encoding was sufficient.

Exceptions

An I/O error occurred during file load.

Remarks

If the load fails, the contents of the ITextBuffer remains unchanged.

Applies to