다음을 통해 공유


ModelingEditorFactory.CreateEditorInstance 메서드

모델링 편집기를 만듭니다.

네임스페이스:  Microsoft.VisualStudio.Modeling.Shell
어셈블리:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

구문

‘선언
Public Function CreateEditorInstance ( _
    createFlags As UInteger, _
    fileName As String, _
    physicalView As String, _
    hierarchy As IVsHierarchy, _
    itemId As UInteger, _
    existingDocData As IntPtr, _
    <OutAttribute> ByRef docView As IntPtr, _
    <OutAttribute> ByRef docData As IntPtr, _
    <OutAttribute> ByRef editorCaption As String, _
    <OutAttribute> ByRef cmdUI As Guid, _
    <OutAttribute> ByRef createDocWinFlags As Integer _
) As Integer
public int CreateEditorInstance(
    uint createFlags,
    string fileName,
    string physicalView,
    IVsHierarchy hierarchy,
    uint itemId,
    IntPtr existingDocData,
    out IntPtr docView,
    out IntPtr docData,
    out string editorCaption,
    out Guid cmdUI,
    out int createDocWinFlags
)

매개 변수

  • createFlags
    형식: System.UInt32
    모델링 편집기를 만드는 방법을 정의하는 플래그입니다.
  • fileName
    형식: System.String
    편집하기 위해 열 문서의 이름입니다.
  • physicalView
    형식: System.String
    모델링 편집기 뷰의 이름입니다.
  • existingDocData
    형식: System.IntPtr
    문서가 이미 Visual Studio에서 열린 경우 해당 문서입니다.
  • editorCaption
    형식: System.String%
    모델링 편집기의 캡션입니다.
  • cmdUI
    형식: System.Guid%
    모델링 편집기에 할당된 GUID입니다.

반환 값

형식: System.Int32
모델링 편집기입니다.

구현

IVsEditorFactory.CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr%, IntPtr%, String%, Guid%, Int32%)

설명

이 메서드는 일부의 IVsEditorFactory 에 의해 호출 되 고 Visual Studio 모델링 편집기를 만들려면. ModelingEditorFactory전화 CreateDocDataCreateDocView 필요 합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

ModelingEditorFactory 클래스

Microsoft.VisualStudio.Modeling.Shell 네임스페이스