SelectedShapesCollection Class

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

System::Object
  Microsoft.VisualStudio.Modeling.Diagrams::SelectedShapesCollection

public ref class SelectedShapesCollection : ICollection, IEnumerable, 
	IDisposable

NameDescription
System_CAPS_pubmethodSelectedShapesCollection(DiagramClientView^)

Initializes a new instance of the SelectedShapesCollection class.

NameDescription
System_CAPS_pubpropertyAnchorItem

Gets or sets the DiagramItem that serves as the anchor for extending the selection.

System_CAPS_pubpropertyBoundingBox

Gets the bounding rectangle surrounding all selected ShapeElements in world units relative to the diagram's top-left.

System_CAPS_pubpropertyCount

Gets the number of ShapeElements in the selection.

System_CAPS_pubpropertyEditItem

Gets the item to edit. This is typically the FocusedItem.

System_CAPS_pubpropertyFocusedItem

Gets or sets the DiagramItem that has the focus.

System_CAPS_pubpropertyIsDeferredSelectionPending

Gets a value indicating whether a deferred selection is pending.

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread-safe).

System_CAPS_pubpropertyPrimaryItem

Gets the primary DiagramItem in the selection.

System_CAPS_pubpropertyRepresentedElements

Gets corresponding ModelElements that represent this selection.

System_CAPS_pubpropertySelectionRules

Gets the DiagramSelectionRules object that constrains how ShapeElements can be added and removed from the selection.

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the collection.

System_CAPS_pubpropertyTopLevelItems

Gets the top level items in the selection.

NameDescription
System_CAPS_pubmethodAdd(DiagramItem^)

Adds a DiagramItem to the current selection.

System_CAPS_pubmethodAdd(DiagramItemCollection^)

Adds the specified DiagramItems to the current selection.

System_CAPS_pubmethodCanEditValue(DiagramClientView^)

Returns a value indicating whether this DiagramItem can be edited.

System_CAPS_pubmethodClear()

Clears the current selection.

System_CAPS_pubmethodCommitPendingEdit(DiagramClientView^)

Commits the in-place edit.

System_CAPS_pubmethodContains(DiagramItem^)

Gets a value indicating whether the selection contains the specified DiagramItem.

System_CAPS_pubmethodCopyTo(Array^, Int32)

Copies the ShapeElements of the selection to an Array, starting at a particular Array index.

System_CAPS_pubmethodCopyTo(array<DiagramItem^>^, Int32)

Copies the DiagramItems of the selection to a DiagramItem[] array, starting at a particular Array index.

System_CAPS_pubmethodDeferredAdd(DiagramItem^)

Defers adding a DiagramItem to the selection until ElementEventsEnded is raised. The DeferredAdd, DeferredRemove, DeferredPrimaryItem, and DeferredClear methods define the parameters to use in a single call to set the selection when ElementEventsEnded is raised.

System_CAPS_pubmethodDeferredClearBeforeAdditions()

Defers clearing the selection until ElementEventsEnded is raised. This clears the selection first, and then any deferred additions or removals are applied. The DeferredAdd, DeferredRemove, DeferredPrimaryItem, and DeferredClear methods define the parameters to use in a single call to set the selection when ElementEventsEnded is raised.

System_CAPS_pubmethodDeferredPrimaryItem(DiagramItem^)

Defers setting the primary item in the selection until ElementEventsEnded is raised. The DeferredAdd, DeferredRemove, DeferredPrimaryItem, and DeferredClear methods define the parameters to use in a single call to set the selection when ElementEventsEnded is raised.

System_CAPS_pubmethodDeferredRemove(DiagramItem^)

Defers removing a DiagramItem from the selection until ElementEventsEnded is raised. The DeferredAdd, DeferredRemove, DeferredPrimaryItem, and DeferredClear methods define the parameters to use in a single call to set the selection when ElementEventsEnded is raised.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the SelectedShapesCollection class.

System_CAPS_protmethodDispose(Boolean)

System_CAPS_pubmethodEditValue(DiagramClientView^)

Invoke the in-place editor for this DiagramItem.

System_CAPS_pubmethodEnsureVisible()

Ensures that the selection is within the view. If it is not, it is centered in the view. If the selection is the diagram, then nothing happens.

System_CAPS_pubmethodEnsureVisible(DiagramClientView::EnsureVisiblePreferences)

Ensures that the selection is within the view. If the selection is the diagram, then nothing happens.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFindFirstFocusableDiagramItem(DiagramItem^)

Given the specified diagram item, find the first diagram item that can receive focus. If the specified diagram item can receive focus, a clone of it is returned. If the diagram item is not focusable, then its first focusable descendant is returned, if any. If that search fails, then the parent hierarchy is traversed for the first focusable ancestor.

System_CAPS_pubmethodSystem_CAPS_staticFindFirstSelectableDiagramItem(DiagramItem^)

Given the specified diagram item, find the first selectable diagram item. If the specified diagram item is selectable, a clone of it is returned. If the diagram item is not selectable, then the parent hierarchy is traversed for the first selectable ancestor.

System_CAPS_pubmethodGetDiagramItemsContainingShape(ShapeElement^)

Gets a collection of diagram items in the selection whose Shape property is the specified shape.

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that can iterate through the DiagramItem collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodHasPendingEdit(DiagramClientView^)

Returns a value indicating whether in-place editing is active.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnSelectionChangedByDeletion(DiagramItemEventArgs^)

Raises the SelectionChangedByDeletion event.

System_CAPS_protmethodOnShapeSelectionChanged(EventArgs^)

System_CAPS_protmethodOnShapeSelectionChanging(EventArgs^)

System_CAPS_pubmethodRemove(DiagramItem^)

Removes a DiagramItem from the current selection.

System_CAPS_pubmethodRemove(DiagramItemCollection^)

Removes the specified DiagramItems from the current selection.

System_CAPS_pubmethodSelectFocusedItemOrAncestor()

Selects the currently focused item in the selection (which may or may not be selected). If it is not selectable, the parent chain will be searched for the first selectable ancestor. The focused item remains unchanged.

System_CAPS_pubmethodSet(DiagramItem^)

Replaces the current selection with a new single selection.

System_CAPS_pubmethodSet(DiagramItemCollection^)

Replaces the current selection with a new selection.

System_CAPS_pubmethodSetDeferredSelection()

Sets the selection using the information gathered from DeferredAdd, DeferredRemove, DeferredPrimaryItem, and DeferredClear. If no deferred information is available, then this method does nothing. This method is intended to be called only during OnElementEventsEnded.

System_CAPS_pubmethodToggle(DiagramItem^)

Toggles the specified DiagramItem into or out of the selection; i.e., if the DiagramItem is selected, it is deselected. If the DiagramItem is not selected, it is selected.

System_CAPS_pubmethodToggle(DiagramItemCollection^)

Toggles the specified DiagramItems into or out of the selection; i.e., if a DiagramItem is selected, it is deselected. If a DiagramItem is not selected, it is selected.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventSelectionChangedByDeletion

Occurs when the selection is about to change because a ModelElement that an item in the selection refers to has been deleted.

System_CAPS_pubeventShapeSelectionChanged

Occurs when the selection has changed.

System_CAPS_pubeventShapeSelectionChanging

Occurs when the selection is about to change.

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: