Partager via


EditorFactory.CreateEditorView Method

Creates a code window with the Visual Studio core editor.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Déclaration
Public Overridable Function CreateEditorView ( _
    moniker As String, _
    buffer As IVsTextLines, _
    physicalView As String, _
    <OutAttribute> ByRef editorCaption As String, _
    <OutAttribute> ByRef cmdUI As Guid _
) As IntPtr
'Utilisation
Dim instance As EditorFactory
Dim moniker As String
Dim buffer As IVsTextLines
Dim physicalView As String
Dim editorCaption As String
Dim cmdUI As Guid
Dim returnValue As IntPtr

returnValue = instance.CreateEditorView(moniker, _
    buffer, physicalView, editorCaption, _
    cmdUI)
public virtual IntPtr CreateEditorView(
    string moniker,
    IVsTextLines buffer,
    string physicalView,
    out string editorCaption,
    out Guid cmdUI
)
public:
virtual IntPtr CreateEditorView(
    String^ moniker, 
    IVsTextLines^ buffer, 
    String^ physicalView, 
    [OutAttribute] String^% editorCaption, 
    [OutAttribute] Guid% cmdUI
)
abstract CreateEditorView : 
        moniker:string * 
        buffer:IVsTextLines * 
        physicalView:string * 
        editorCaption:string byref * 
        cmdUI:Guid byref -> IntPtr 
override CreateEditorView : 
        moniker:string * 
        buffer:IVsTextLines * 
        physicalView:string * 
        editorCaption:string byref * 
        cmdUI:Guid byref -> IntPtr 
public function CreateEditorView(
    moniker : String, 
    buffer : IVsTextLines, 
    physicalView : String, 
    editorCaption : String, 
    cmdUI : Guid
) : IntPtr

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.
  • 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.

Return Value

Type: System.IntPtr
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

EditorFactory Class

EditorFactory Members

Microsoft.VisualStudio.Package Namespace