次の方法で共有


SelectionContainer.SelectedObjects Property

Gets or sets the collection of selected objects.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Property SelectedObjects As ICollection
'使用
Dim instance As SelectionContainer
Dim value As ICollection

value = instance.SelectedObjects

instance.SelectedObjects = value
public ICollection SelectedObjects { get; set; }
public:
property ICollection^ SelectedObjects {
    ICollection^ get ();
    void set (ICollection^ value);
}
public function get SelectedObjects () : ICollection
public function set SelectedObjects (value : ICollection)

Property Value

Type: System.Collections.ICollection

Returns a collection of selected objects.

Remarks

This collection is equivalent to the collection returned by a call to ISelectionContainer with a selection type of F:Microsoft.VisualStudio.Shell.SelectionContainer.SELECTED. The value of this collection changes when the selection container has its SelectObjects method called.

Permissions

See Also

Reference

SelectionContainer Class

SelectionContainer Members

Microsoft.VisualStudio.Shell Namespace