Share via


ModelingWindowPane.GetSelectedObjects Method

Gets the elements that are selected in the window pane.

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

Syntax

'Declaration
Protected Overridable Sub GetSelectedObjects ( _
    count As UInteger, _
    objects As Object() _
)
protected virtual void GetSelectedObjects(
    uint count,
    Object[] objects
)
protected:
virtual void GetSelectedObjects(
    unsigned int count, 
    array<Object^>^ objects
)
abstract GetSelectedObjects : 
        count:uint32 * 
        objects:Object[] -> unit  
override GetSelectedObjects : 
        count:uint32 * 
        objects:Object[] -> unit
protected function GetSelectedObjects(
    count : uint, 
    objects : Object[]
)

Parameters

  • count
    Type: UInt32

    The number of objects to be returned.

  • objects
    Type: array<Object[]

    The selected elements.

Remarks

By default this method returns the elements in the SelectedElements collection if count is less than or equal to the count of that collection.

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

Microsoft.VisualStudio.Modeling.Shell Namespace