EditorFactory.CreateEditorView Méthode

Définition

Retourne l’objet COM docView IUnknown.

public:
 virtual IntPtr CreateEditorView(System::String ^ moniker, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer, System::String ^ physicalView, [Runtime::InteropServices::Out] System::String ^ % editorCaption, [Runtime::InteropServices::Out] Guid % cmdUI);
public virtual IntPtr CreateEditorView (string moniker, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines buffer, string physicalView, out string editorCaption, out Guid cmdUI);
abstract member CreateEditorView : string * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * string * string * Guid -> nativeint
override this.CreateEditorView : string * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * string * string * Guid -> nativeint
Public Overridable Function CreateEditorView (moniker As String, buffer As IVsTextLines, physicalView As String, ByRef editorCaption As String, ByRef cmdUI As Guid) As IntPtr

Paramètres

moniker
String

Format de chaîne de l'identificateur de moniker du document dans le système de projet. Dans le cas où les documents sont des fichiers, il s'agit toujours du chemin d'accès au fichier.

buffer
IVsTextLines

Mémoire tampon utilisée pour définir la mémoire tampon de texte pour toutes les vues dans la fenêtre de code.

physicalView
String

Nom de la vue physique.

editorCaption
String

Légende initiale définie par l'éditeur de document pour la fenêtre de document. Il s'agit généralement d'une chaîne placée entre crochets (par exemple, « [Formulaire] »). Cette valeur est passée en tant que paramètre d'entrée à la méthode CreateDocumentWindow(UInt32, String, IVsUIHierarchy, UInt32, IntPtr, IntPtr, Guid, String, Guid, IServiceProvider, String, String, Int32[], IVsWindowFrame). Si le fichier est en lecture seule, la légende est définie pendant le chargement du fichier.

Retours

IntPtr

nativeint

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

S’applique à