Share via


StandardVsModelingDiagramView.SetSelection Method (IEnumerable<ModelBusReference>)

Finds the ShapeElement corresponding to each of the references and Selects all of them on the design surface. If any reference resolves to a ModelElement which is not a Shape, an attempt is made to find the corresponding Shape for it.

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

Syntax

'Declaration
Public Overrides Sub SetSelection ( _
    references As IEnumerable(Of ModelBusReference) _
)
public override void SetSelection(
    IEnumerable<ModelBusReference> references
)
public:
virtual void SetSelection(
    IEnumerable<ModelBusReference^>^ references
) override
abstract SetSelection : 
        references:IEnumerable<ModelBusReference> -> unit  
override SetSelection : 
        references:IEnumerable<ModelBusReference> -> unit
public override function SetSelection(
    references : IEnumerable<ModelBusReference>
)

Parameters

  • references
    Type: IEnumerable<ModelBusReference>

    ModelBusReference collection that identifies ModelElements or Shapes that needs to be selected

.NET Framework Security

See Also

Reference

StandardVsModelingDiagramView Class

SetSelection Overload

Microsoft.VisualStudio.Modeling.Integration.Shell Namespace