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
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.