DiagramDocView Class
Represents a diagram view in the Domain-Specific Language Designer or generated designer.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Microsoft.VisualStudio.Shell::WindowPane
Microsoft.VisualStudio.Modeling.Shell::ModelingWindowPane
Microsoft.VisualStudio.Modeling.Shell::ModelingDocView
Microsoft.VisualStudio.Modeling.Shell::DiagramDocView
Microsoft.VisualStudio.Modeling.Shell::SingleDiagramDocView
| Name | Description | |
|---|---|---|
![]() | DiagramDocView(ModelingDocData^, IServiceProvider^) | Initializes a new instance of the DiagramDocView class. |
| Name | Description | |
|---|---|---|
![]() | ActiveInPlaceEditWindow | Gets and sets the active window for in-place editing.(Inherited from ModelingWindowPane.) |
![]() | AllDesigners | |
![]() | Content | (Inherited from WindowPane.) |
![]() | ContextMenuId | Gets the shortcut menu to display when a user right-clicks the diagram view. |
![]() | ContextMenuMousePosition | Gets the position of the mouse when the shortcut menu is invoked for the diagram view. |
![]() | ContextMenuXPosition | The X position for the context menu |
![]() | ContextMenuYPosition | The Y position for the context menu |
![]() | CurrentDesigner | Gets the active diagram view. |
![]() | CurrentDiagram | Gets the currently selected model in the active diagram view. |
![]() | DefaultToolboxTabName | Gets the name of the Toolbox tab that the user clicked.(Inherited from ModelingDocView.) |
![]() | DefaultToolboxTabToolboxItemsCount | (Inherited from ModelingDocView.) |
![]() | DocData | Gets a document for the document window.(Inherited from ModelingDocView.) |
![]() | Frame | Gets the IVsWindowFrame that corresponds to this window..(Inherited from ModelingWindowPane.) |
![]() | HasSelectableObjects | Gets the document window and if the document window is open, enables the Select Objects option.(Inherited from ModelingDocView.) |
![]() | HelpService | Gets the help service.(Inherited from ModelingWindowPane.) |
![]() | InitializationMode | (Inherited from WindowPane.) |
![]() | IsContextMenuShowing | Gets the shortcut menu and verifies whether it appears for the diagram view. |
![]() | IsPrimaryView | Gets the document window and verifies whether this window is the primary document window.(Inherited from ModelingDocView.) |
![]() | MenuService | Gets the menu command service.(Inherited from ModelingWindowPane.) |
![]() | PrimarySelection | Gets the primary selected element in the window pane.(Inherited from ModelingWindowPane.) |
![]() | ProvideViewHelper | Gets the document window and verifies whether a view helper should be created for the document window.(Inherited from ModelingDocView.) |
![]() | SelectedElements | Gets the elements that are selected in the window pane.(Inherited from ModelingWindowPane.) |
![]() | SelectionCount | Gets the number of elements that are selected in the window pane.(Inherited from ModelingWindowPane.) |
![]() | SelectionHelpService | Gets the selection help service. (Inherited from ModelingWindowPane.) |
![]() | ServiceProvider | Gets the service provider that is local to this window pane.(Inherited from ModelingWindowPane.) |
![]() | TargetToolboxItemFilterAttributes | Gets a collection of filter attributes for a Toolbox item. (Overrides ModelingDocView::TargetToolboxItemFilterAttributes.) |
![]() | ToolboxService | Gets the Toolbox service.(Inherited from ModelingDocView.) |
![]() | Window | (Inherited from WindowPane.) |
| Name | Description | |
|---|---|---|
![]() | BaseLoadView() | To be called when the associated DocData is finished loading or reloading, primarily from DocView.LoadView(). Performs any basic initialization required after loading a new DocData into the view.(Inherited from ModelingDocView.) |
![]() | CommitPendingEditForCommand(CommandID^) | Verifies whether outstanding edits should be committed before a command is executed.(Overrides ModelingWindowPane::CommitPendingEditForCommand(CommandID^).) |
![]() | CountAllObjects() | Counts the number of elements that are in the model.(Overrides ModelingWindowPane::CountAllObjects().) |
![]() | CountObjects(UInt32, UInt32) | Counts the number of elements in the window pane or in the current selection.(Inherited from ModelingWindowPane.) |
![]() | CountSelectedObjects() | Gets the number of elements in the current selection.(Inherited from ModelingWindowPane.) |
![]() | CreateDiagramView() | Creates a diagram view for the document window. |
![]() | Dispose() | (Inherited from WindowPane.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the DiagramDocView and optionally releases the managed resources.(Overrides ModelingDocView::Dispose(Boolean).) |
![]() | DoSelectObjects(UInt32, array<Object^>^, UInt32) | Selects elements in the diagram view.(Overrides ModelingWindowPane::DoSelectObjects(UInt32, array<Object^>^, UInt32).) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | Find(String^, UInt32, Int32, IVsFindHelper^, UInt32) | Not currently implemented. |
![]() | GetAllObjects(UInt32, array<Object^>^) | Gets all elements in the model.(Overrides ModelingWindowPane::GetAllObjects(UInt32, array<Object^>^).) |
![]() | GetCapabilities(array<Boolean>^, array<UInt32>^) | Specifies which search options to support. |
![]() | GetComponentSelected(Object^) | Specifies whether the given component is selected.(Inherited from ModelingWindowPane.) |
![]() | GetContainerSelected(Object^) | Specifies whether the given container is selected.(Inherited from ModelingWindowPane.) |
![]() | GetCurrentSpan(array<TextSpan>^) | Not currently implemented. |
![]() | GetDiagramFromPhysicalView(Guid) | Gets a model from the Store so that it can appear in the diagram view. |
![]() | GetFindState(Object^) | Not currently implemented. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjects(UInt32, UInt32, array<Object^>^) | Gets either the elements that are currently selected or the elements that can be selected in the window pane.(Inherited from ModelingWindowPane.) |
![]() | GetProperty(UInt32, Object^) | Gets the properties that are assigned to an element in the model. |
![]() | GetSearchImage(UInt32, array<IVsTextSpanSet^>^, IVsTextImage^) | Not currently implemented. |
![]() | GetSelectedComponents() | Gets the components that are selected in the window pane.(Inherited from ModelingWindowPane.) |
![]() | GetSelectedObjects(UInt32, array<Object^>^) | Gets the elements that are selected in the window pane.(Inherited from ModelingWindowPane.) |
![]() | GetService(Type^) | Gets the service of the specified type. Override this method to return the custom menu command service(Inherited from ModelingWindowPane.) |
![]() | GetSite(Guid, IntPtr) | Gets the site that was set with SetSite.(Inherited from ModelingWindowPane.) |
![]() | GetToolboxItemFilterAttributes() | Gets a collection of filter strings and filter types for the Toolbox. |
![]() | GetType() | (Inherited from Object.) |
![]() | Hide() | Hides the window pane.(Inherited from ModelingWindowPane.) |
![]() | Initialize() | Initializes an instance of the ModelingDocView class.(Inherited from ModelingDocView.) |
![]() | InterceptDataObject(IDataObject^) | Called by toolbox when the input data object is about to go into a drag-drop operation. This method allows the input data object to be substituted by the returned data object, which will go into the drag-drop operation instead. The base implementation returns null, which means no substitution of the input data object.(Inherited from ModelingDocView.) |
![]() | IsDataObjectSupported(IDataObject^) | Verifies whether an item in the Toolbox can be used with the document window.(Inherited from ModelingDocView.) |
![]() | IsObjectBrowsable(ModelElement^) | Returns true if the Browsable attribute of the element is true. |
![]() | IsSupported(IDataObject^) | Verifies whether the document window supports an item in the Toolbox.(Inherited from ModelingDocView.) |
![]() | ItemPicked(IDataObject^) | Notifies clients that a user clicked an item in the Toolbox or pressed ENTER to select the item.(Inherited from ModelingDocView.) |
![]() | LoadUIState(Stream^) | (Inherited from WindowPane.) |
![]() | LoadView() | Verifies whether the document has loaded in a document window.(Inherited from ModelingDocView.) |
![]() | MarkSpan(array<TextSpan>^) | Not currently implemented. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | NavigateTo(array<TextSpan>^) | Not currently implemented. |
![]() | NotifyFindTarget(UInt32) | This member is no longer used. |
![]() | OnClose() | Removes window pane objects from the shortcut menu selection when the window pane is closed.(Inherited from ModelingWindowPane.) |
![]() | OnContextMenuRequested(DiagramPointEventArgs^) | Processes a request for the shortcut menu. |
![]() | OnCreate() | When the document is loaded, creates a view for the document window.(Inherited from ModelingDocView.) |
![]() | OnSelectionChanged(EventArgs^) | Recalculates which Toolbox filters to use.(Overrides ModelingWindowPane::OnSelectionChanged(EventArgs^).) |
![]() | OnSelectionChanging(EventArgs^) | Notifies event listeners before the selection changes.(Inherited from ModelingWindowPane.) |
![]() | OnToolboxItemSelected(IDataObject^) | When a user clicks an item in the Toolbox, calls ToolboxItemSelected.(Inherited from ModelingDocView.) |
![]() | OnToolboxSelectionChanged() | (Inherited from ModelingDocView.) |
![]() | PreProcessMessage(Message) | Handles window messages.(Inherited from ModelingWindowPane.) |
![]() | Replace(String^, String^, UInt32, Int32, IVsFindHelper^, Int32) | Not currently implemented. |
![]() | SaveUIState(Stream^) | (Inherited from WindowPane.) |
![]() | SelectObjects(UInt32, array<Object^>^, UInt32) | Selects elements in the window pane.(Inherited from ModelingWindowPane.) |
![]() | SetFindState(Object^) | Not currently implemented. |
![]() | SetInfo() | Updates the status bar for the document window.(Inherited from ModelingDocView.) |
![]() | SetSelectedComponents(ICollection^) | Adds the specified components into the selection container and notifies the shell of the selection change.(Inherited from ModelingWindowPane.) |
![]() | SetSelectedComponents(ICollection^, SelectionTypes) | Not currently implemented.(Inherited from ModelingWindowPane.) |
![]() | SetSite(Object^) | Initializes the window pane in the environment.(Inherited from ModelingWindowPane.) |
![]() | Show() | Displays the window pane, brings it to the front, and makes it the active window.(Inherited from ModelingWindowPane.) |
![]() | ShowContextMenu(CommandID^, Point) | Displays the shortcut menu at a specific location in the diagram view. |
![]() | ShowNoActivate() | Displays the window pane, brings it to the front, but does not make it the active window.(Inherited from ModelingWindowPane.) |
![]() | ToString() | (Inherited from Object.) |
![]() | UpdateToolboxFilters(DiagramDocView::ToolboxItemFilterType, Boolean) | Updates the collection of Toolbox filters to use with the active diagram view. |
| Name | Description | |
|---|---|---|
![]() | SelectionChanged | Fired after the selection in the window pane has changed.(Inherited from ModelingWindowPane.) |
![]() | SelectionChanging | Fired before the selection in the window pane changes.(Inherited from ModelingWindowPane.) |
![]() | ToolboxItemSelected | Occurs when the user drags the selected item from the Toolbox to the document window.(Inherited from ModelingDocView.) |
![]() | ToolboxSelectionChanged | Called when toolbox selection changes (through single-click or pressing up/down arrow keys).(Inherited from ModelingDocView.) |
You use the diagram view to display models. A model is a collection of elements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.






