ModelingEditorFactory Class
Provides support for the modeling editor factory, which enables the Visual Studio shell to obtain an editor for a specific file type.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | ModelingEditorFactory(IServiceProvider^) | Initializes a new instance of the ModelingEditorFactory class. |
| Name | Description | |
|---|---|---|
![]() | CancelEditorCreate | Gets the value of the cancelEditorCreate flag. If this value is larger than 0, this property prevents the modeling editor from being created and sets this flag to 0. |
![]() | Flags | Gets a list of flags, which define how the modeling editor is created. |
![]() | ServiceProvider | Gets the service provider that retrieves Visual Studio services. |
| Name | Description | |
|---|---|---|
![]() | Close() | Releases all cached interface pointers and unregisters any event synchronizations. |
![]() | CreateDocData() | Creates a document in memory. |
![]() | CreateDocData(String^, IVsHierarchy^, UInt32) | Creates a document in memory. |
![]() | CreateDocView(ModelingDocData^, String^, String^) | Creates a document in memory. |
![]() | CreateEditorInstance(UInt32, String^, String^, IVsHierarchy^, UInt32, IntPtr, IntPtr, IntPtr, String^, Guid, Int32) | Creates a modeling editor. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetDocData(Object^) | Gets a document. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetItemErrorListProvider(IVsHierarchy^, UInt32) | Get an error list provider for the specified project item (assumed to be a modeling doc data). If there is no existing error list provider for the item, then one is created. |
![]() | GetType() | (Inherited from Object.) |
![]() | HandleEditorCreationException(String^, Exception^) | Handles an exception if one occurs when an additional modeling editor is created. |
![]() | IsDocDataSupported(ModelingDocData^) | Verifies whether a document of a specific format can be used in the modeling editor. |
![]() | MapLogicalView(Guid, Object^) | Maps a logical view's GUID to a physical view. |
![]() | MapLogicalView(Guid, String^) | Maps a logical view's GUID to a physical view. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnAfterCloseSolution(Object^) | Notifies listening clients that the modeling editor has closed. |
![]() | OnAfterLoadProject(IVsHierarchy^, IVsHierarchy^) | Notifies listening clients that the project has loaded. |
![]() | OnAfterOpenProject(IVsHierarchy^, Int32) | Notifies listening clients that the project has opened. |
![]() | OnAfterOpenSolution(Object^, Int32) | Notifies listening clients that the modeling editor has opened. |
![]() | OnBeforeCloseProject(IVsHierarchy^, Int32) | Notifies listening clients that the project is about to be closed. |
![]() | OnBeforeCloseSolution(Object^) | Notifies listening clients that the modeling editor is about to be closed. |
![]() | OnBeforeUnloadProject(IVsHierarchy^, IVsHierarchy^) | Notifies listening clients that the project is about to be unloaded. |
![]() | OnQueryCloseProject(IVsHierarchy^, Int32, Int32) | Queries listening clients as to whether the project can be closed. |
![]() | OnQueryCloseSolution(Object^, Int32) | Notifies listening clients that the modeling editor has closed. |
![]() | OnQueryUnloadProject(IVsHierarchy^, Int32) | Queries listening clients as to whether the project can be unloaded. |
![]() | SetSite(IServiceProvider^) | Sets the service provider from which to access shell services. |
![]() | ToString() | (Inherited from Object.) |
You can use this class to create, monitor, and close the modeling editor. The modeling editor is represented by the DocData object and the DocView object. The DocData object represents a document in memory, and the DocView object represents a view for the document. Within the modeling editor, a document can have multiple views assigned to it.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


