ITextDocumentFactoryService::CreateTextDocument Method (ITextBuffer^, String^)
Visual Studio 2015
Creates an ITextDocument with textBuffer, which is to be saved to the file.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- textBuffer
-
Type:
Microsoft.VisualStudio.Text::ITextBuffer^
The ITextBuffer to be saved to the file.
- filePath
-
Type:
System::String^
The full path to the file.
| Exception | Condition |
|---|---|
| ArgumentNullException | textBuffer or filePath is null. |
This call does not save the contents of the buffer to the given path.
Show: