Compartilhar 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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
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: System.UInt32
    The number of objects to be returned.

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