Sdílet prostřednictvím


SelectedItems.SelectionContainer – vlastnost

Získává SelectionContainer objekt představující Návrhář hostování vybrané položky.

Obor názvů:  EnvDTE
Sestavení:  EnvDTE (v EnvDTE.dll)

Syntaxe

'Deklarace
ReadOnly Property SelectionContainer As SelectionContainer
SelectionContainer SelectionContainer { get; }
property SelectionContainer^ SelectionContainer {
    SelectionContainer^ get ();
}
abstract SelectionContainer : SelectionContainer with get
function get SelectionContainer () : SelectionContainer

Hodnota vlastnosti

Typ: EnvDTE.SelectionContainer
Objekt SelectionContainer.

Poznámky

SelectionContainerVrátí kolekci objektů, jemnější rozlišení, než Project nebo ProjectItem.

Příklady

Sub SelectionContainerExample()
   Dim SelContain As SelectionContainer
   Dim ContainerItem As SelectedItem

   ' Set references to the selection container and its selected item.
   SelContain = DTE.SelectedItems.SelectionContainer
   ContainerItem = DTE.SelectedItems.Item(1)

   ' Print the name of the container of the selected item.
   MsgBox(ContainerItem.Name)
End Sub

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

SelectedItems Rozhraní

EnvDTE – obor názvů