ModelingEditorFactory.CreateEditorInstance 메서드

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

네임스페이스:  Microsoft.VisualStudio.Modeling.Shell
어셈블리:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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 문서를 엽니다.
  • docView
    형식: System.IntPtr%
    문서에 대 한 보기입니다.
  • 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 네임스페이스