EditorFactory::CreateEditorView Method (String^, IVsTextLines^, String^, String^, Guid)
Visual Studio 2015
Creates a code window with the Visual Studio core editor.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: virtual IntPtr CreateEditorView( String^ moniker, IVsTextLines^ buffer, String^ physicalView, [OutAttribute] String^% editorCaption, [OutAttribute] Guid% cmdUI )
Parameters
- moniker
-
Type:
System::String^
String form of the moniker identifier of the document in the project system. In the case of documents that are files, this is always the path to the file.
- buffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
The buffer used to set the text buffer for all views in the code window.
- physicalView
-
Type:
System::String^
Name of the physical view.
- editorCaption
-
Type:
System::String^
Initial caption defined by the document editor for the document window. This is typically a string enclosed in square brackets, such as "[Form]". This value is passed as an input parameter to the CreateDocumentWindow method. If the file is [ReadOnly] the caption will be set during load of the file.
- cmdUI
- Type: System::Guid
Return Value
Type: System::IntPtrIf the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: