DiagramDocView Class

 

Represents a diagram view in the Domain-Specific Language Designer or generated designer.

Namespace:   Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)


[CLSCompliantAttribute(false)]
public ref class DiagramDocView abstract : ModelingDocView, IVsFindTarget, 
	IContextMenuHost

NameDescription
System_CAPS_protmethodDiagramDocView(ModelingDocData^, IServiceProvider^)

Initializes a new instance of the DiagramDocView class.

NameDescription
System_CAPS_pubpropertyActiveInPlaceEditWindow

Gets and sets the active window for in-place editing.(Inherited from ModelingWindowPane.)

System_CAPS_pubpropertyAllDesigners

System_CAPS_pubpropertyContent

(Inherited from WindowPane.)

System_CAPS_protpropertyContextMenuId

Gets the shortcut menu to display when a user right-clicks the diagram view.

System_CAPS_pubpropertyContextMenuMousePosition

Gets the position of the mouse when the shortcut menu is invoked for the diagram view.

System_CAPS_pubpropertyContextMenuXPosition

The X position for the context menu

System_CAPS_pubpropertyContextMenuYPosition

The Y position for the context menu

System_CAPS_pubpropertyCurrentDesigner

Gets the active diagram view.

System_CAPS_pubpropertyCurrentDiagram

Gets the currently selected model in the active diagram view.

System_CAPS_protpropertyDefaultToolboxTabName

Gets the name of the Toolbox tab that the user clicked.(Inherited from ModelingDocView.)

System_CAPS_protpropertyDefaultToolboxTabToolboxItemsCount

(Inherited from ModelingDocView.)

System_CAPS_pubpropertyDocData

Gets a document for the document window.(Inherited from ModelingDocView.)

System_CAPS_pubpropertyFrame

Gets the IVsWindowFrame that corresponds to this window..(Inherited from ModelingWindowPane.)

System_CAPS_protpropertyHasSelectableObjects

Gets the document window and if the document window is open, enables the Select Objects option.(Inherited from ModelingDocView.)

System_CAPS_protpropertyHelpService

Gets the help service.(Inherited from ModelingWindowPane.)

System_CAPS_protpropertyInitializationMode

(Inherited from WindowPane.)

System_CAPS_pubpropertyIsContextMenuShowing

Gets the shortcut menu and verifies whether it appears for the diagram view.

System_CAPS_protpropertyIsPrimaryView

Gets the document window and verifies whether this window is the primary document window.(Inherited from ModelingDocView.)

System_CAPS_pubpropertyMenuService

Gets the menu command service.(Inherited from ModelingWindowPane.)

System_CAPS_pubpropertyPrimarySelection

Gets the primary selected element in the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_protpropertyProvideViewHelper

Gets the document window and verifies whether a view helper should be created for the document window.(Inherited from ModelingDocView.)

System_CAPS_protpropertySelectedElements

Gets the elements that are selected in the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_pubpropertySelectionCount

Gets the number of elements that are selected in the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_protpropertySelectionHelpService

Gets the selection help service. (Inherited from ModelingWindowPane.)

System_CAPS_protpropertyServiceProvider

Gets the service provider that is local to this window pane.(Inherited from ModelingWindowPane.)

System_CAPS_protpropertyTargetToolboxItemFilterAttributes

Gets a collection of filter attributes for a Toolbox item. (Overrides ModelingDocView::TargetToolboxItemFilterAttributes.)

System_CAPS_protpropertyToolboxService

Gets the Toolbox service.(Inherited from ModelingDocView.)

System_CAPS_pubpropertyWindow

(Inherited from WindowPane.)

NameDescription
System_CAPS_protmethodBaseLoadView()

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.)

System_CAPS_protmethodCommitPendingEditForCommand(CommandID^)

Verifies whether outstanding edits should be committed before a command is executed.(Overrides ModelingWindowPane::CommitPendingEditForCommand(CommandID^).)

System_CAPS_protmethodCountAllObjects()

Counts the number of elements that are in the model.(Overrides ModelingWindowPane::CountAllObjects().)

System_CAPS_pubmethodCountObjects(UInt32, UInt32)

Counts the number of elements in the window pane or in the current selection.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodCountSelectedObjects()

Gets the number of elements in the current selection.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodCreateDiagramView()

Creates a diagram view for the document window.

System_CAPS_pubmethodDispose()

(Inherited from WindowPane.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the DiagramDocView and optionally releases the managed resources.(Overrides ModelingDocView::Dispose(Boolean).)

System_CAPS_protmethodDoSelectObjects(UInt32, array<Object^>^, UInt32)

Selects elements in the diagram view.(Overrides ModelingWindowPane::DoSelectObjects(UInt32, array<Object^>^, UInt32).)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFind(String^, UInt32, Int32, IVsFindHelper^, UInt32)

Not currently implemented.

System_CAPS_protmethodGetAllObjects(UInt32, array<Object^>^)

Gets all elements in the model.(Overrides ModelingWindowPane::GetAllObjects(UInt32, array<Object^>^).)

System_CAPS_pubmethodGetCapabilities(array<Boolean>^, array<UInt32>^)

Specifies which search options to support.

System_CAPS_pubmethodGetComponentSelected(Object^)

Specifies whether the given component is selected.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodGetContainerSelected(Object^)

Specifies whether the given container is selected.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodGetCurrentSpan(array<TextSpan>^)

Not currently implemented.

System_CAPS_protmethodGetDiagramFromPhysicalView(Guid)

Gets a model from the Store so that it can appear in the diagram view.

System_CAPS_pubmethodGetFindState(Object^)

Not currently implemented.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjects(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.)

System_CAPS_pubmethodGetProperty(UInt32, Object^)

Gets the properties that are assigned to an element in the model.

System_CAPS_pubmethodGetSearchImage(UInt32, array<IVsTextSpanSet^>^, IVsTextImage^)

Not currently implemented.

System_CAPS_pubmethodGetSelectedComponents()

Gets the components that are selected in the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodGetSelectedObjects(UInt32, array<Object^>^)

Gets the elements that are selected in the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodGetService(Type^)

Gets the service of the specified type. Override this method to return the custom menu command service(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodGetSite(Guid, IntPtr)

Gets the site that was set with SetSite.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodGetToolboxItemFilterAttributes()

Gets a collection of filter strings and filter types for the Toolbox.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodHide()

Hides the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodInitialize()

Initializes an instance of the ModelingDocView class.(Inherited from ModelingDocView.)

System_CAPS_protmethodInterceptDataObject(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.)

System_CAPS_pubmethodIsDataObjectSupported(IDataObject^)

Verifies whether an item in the Toolbox can be used with the document window.(Inherited from ModelingDocView.)

System_CAPS_protmethodIsObjectBrowsable(ModelElement^)

Returns true if the Browsable attribute of the element is true.

System_CAPS_pubmethodIsSupported(IDataObject^)

Verifies whether the document window supports an item in the Toolbox.(Inherited from ModelingDocView.)

System_CAPS_pubmethodItemPicked(IDataObject^)

Notifies clients that a user clicked an item in the Toolbox or pressed ENTER to select the item.(Inherited from ModelingDocView.)

System_CAPS_pubmethodLoadUIState(Stream^)

(Inherited from WindowPane.)

System_CAPS_protmethodLoadView()

Verifies whether the document has loaded in a document window.(Inherited from ModelingDocView.)

System_CAPS_pubmethodMarkSpan(array<TextSpan>^)

Not currently implemented.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNavigateTo(array<TextSpan>^)

Not currently implemented.

System_CAPS_pubmethodNotifyFindTarget(UInt32)

This member is no longer used.

System_CAPS_protmethodOnClose()

Removes window pane objects from the shortcut menu selection when the window pane is closed.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodOnContextMenuRequested(DiagramPointEventArgs^)

Processes a request for the shortcut menu.

System_CAPS_protmethodOnCreate()

When the document is loaded, creates a view for the document window.(Inherited from ModelingDocView.)

System_CAPS_protmethodOnSelectionChanged(EventArgs^)

Recalculates which Toolbox filters to use.(Overrides ModelingWindowPane::OnSelectionChanged(EventArgs^).)

System_CAPS_protmethodOnSelectionChanging(EventArgs^)

Notifies event listeners before the selection changes.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodOnToolboxItemSelected(IDataObject^)

When a user clicks an item in the Toolbox, calls ToolboxItemSelected.(Inherited from ModelingDocView.)

System_CAPS_protmethodOnToolboxSelectionChanged()

(Inherited from ModelingDocView.)

System_CAPS_protmethodPreProcessMessage(Message)

Handles window messages.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodReplace(String^, String^, UInt32, Int32, IVsFindHelper^, Int32)

Not currently implemented.

System_CAPS_pubmethodSaveUIState(Stream^)

(Inherited from WindowPane.)

System_CAPS_pubmethodSelectObjects(UInt32, array<Object^>^, UInt32)

Selects elements in the window pane.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodSetFindState(Object^)

Not currently implemented.

System_CAPS_pubmethodSetInfo()

Updates the status bar for the document window.(Inherited from ModelingDocView.)

System_CAPS_pubmethodSetSelectedComponents(ICollection^)

Adds the specified components into the selection container and notifies the shell of the selection change.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodSetSelectedComponents(ICollection^, SelectionTypes)

Not currently implemented.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodSetSite(Object^)

Initializes the window pane in the environment.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodShow()

Displays the window pane, brings it to the front, and makes it the active window.(Inherited from ModelingWindowPane.)

System_CAPS_protmethodShowContextMenu(CommandID^, Point)

Displays the shortcut menu at a specific location in the diagram view.

System_CAPS_pubmethodShowNoActivate()

Displays the window pane, brings it to the front, but does not make it the active window.(Inherited from ModelingWindowPane.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodUpdateToolboxFilters(DiagramDocView::ToolboxItemFilterType, Boolean)

Updates the collection of Toolbox filters to use with the active diagram view.

NameDescription
System_CAPS_pubeventSelectionChanged

Fired after the selection in the window pane has changed.(Inherited from ModelingWindowPane.)

System_CAPS_pubeventSelectionChanging

Fired before the selection in the window pane changes.(Inherited from ModelingWindowPane.)

System_CAPS_pubeventToolboxItemSelected

Occurs when the user drags the selected item from the Toolbox to the document window.(Inherited from ModelingDocView.)

System_CAPS_pubeventToolboxSelectionChanged

Called when toolbox selection changes (through single-click or pressing up/down arrow keys).(Inherited from ModelingDocView.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIOleCommandTarget::Exec(Guid, UInt32, UInt32, IntPtr, IntPtr)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIOleCommandTarget::QueryStatus(Guid, UInt32, array<OLECMD>^, IntPtr)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsStatusbarUser::SetInfo()

Called by the shell when it's time for us to set info on the status bar.(Inherited from ModelingDocView.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsToolboxActiveUserHook::InterceptDataObject(IDataObject^, 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 output data object, which will go into the drag-drop operation instead.(Inherited from ModelingDocView.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsToolboxActiveUserHook::ToolboxSelectionChanged(IDataObject^)

Called when selection on toolbox changes (through a single-click or pressing up/down arrow keys).(Inherited from ModelingDocView.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::CloseUIElementPane()

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::CreateUIElementPane(Object^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::GetDefaultUIElementSize(array<SIZE>^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::LoadUIElementState(IStream^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::SaveUIElementState(IStream^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::SetUIElementSite(IServiceProvider^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsUIElementPane::TranslateUIElementAccelerator(array<MSG>^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::ClosePane()

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::GetDefaultSize(array<SIZE>^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::LoadViewState(IStream^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::SaveViewState(IStream^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::SetSite(IServiceProvider^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsWindowPane::TranslateAccelerator(array<MSG>^)

(Inherited from WindowPane.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsFindTarget::GetMatchRect(array<RECT>^)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceProvider::GetService(Type^)

(Inherited from WindowPane.)

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.

Return to top
Show: