다음을 통해 공유


EditorFactory.CreateEditorView 메서드

정의

docView IUnknown 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

매개 변수

moniker
String

프로젝트 시스템에 있는 문서의 모니커 식별자의 문자열 형식입니다. 파일인 문서의 경우 항상 파일의 경로입니다.

buffer
IVsTextLines

코드 창의 모든 보기에 대한 텍스트 버퍼를 설정하는 데 사용되는 버퍼입니다.

physicalView
String

실제 보기의 이름입니다.

editorCaption
String

문서 창에 대한 문서 편집기에서 정의한 초기 캡션. 일반적으로 "[Form]"과 같이 대괄호로 묶인 문자열입니다. 이 값은 메서드에 입력 매개 변수로 CreateDocumentWindow(UInt32, String, IVsUIHierarchy, UInt32, IntPtr, IntPtr, Guid, String, Guid, IServiceProvider, String, String, Int32[], IVsWindowFrame) 전달됩니다. 파일이 [ReadOnly]인 경우 파일을 로드하는 동안 캡션 설정됩니다.

반환

IntPtr

nativeint

메서드가 성공하면 S_OK가 반환되고, 그렇지 않으면 오류 코드가 반환됩니다.

적용 대상