EditorFactory.CreateEditorView Metoda

Definice

Vrátí docView IUnknown objekt COM.

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

Parametry

moniker
String

Řetězcová forma identifikátoru moniker dokumentu v systému projektu. V případě dokumentů, které jsou soubory, je to vždy cesta k souboru.

buffer
IVsTextLines

Vyrovnávací paměť použitá k nastavení textové vyrovnávací paměti pro všechna zobrazení v okně kódu.

physicalView
String

Název fyzického zobrazení

editorCaption
String

Počáteční popis definované editorem dokumentů pro okno dokumentu. Obvykle se jedná o řetězec uzavřený v hranatých závorkách, například "[Form]". Tato hodnota je předána jako vstupní parametr metodě CreateDocumentWindow(UInt32, String, IVsUIHierarchy, UInt32, IntPtr, IntPtr, Guid, String, Guid, IServiceProvider, String, String, Int32[], IVsWindowFrame) . Pokud je soubor [Jen pro čtení] popis se nastaví během načítání souboru.

Návraty

IntPtr

nativeint

Pokud je metoda úspěšná, vrátí S_OK. Pokud selže, vrátí kód chyby.

Platí pro