Propriedade SelectedItems.SelectionContainer

Obtém um SelectionContainer o objeto que representa o designer que hospeda os itens selecionados.

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
ReadOnly Property SelectionContainer As SelectionContainer
    Get
SelectionContainer SelectionContainer { get; }
property SelectionContainer^ SelectionContainer {
    SelectionContainer^ get ();
}
abstract SelectionContainer : SelectionContainer
function get SelectionContainer () : SelectionContainer

Valor de propriedade

Tipo: EnvDTE.SelectionContainer
A SelectionContainer objeto.

Comentários

SelectionContainerRetorna uma coleção de objetos em uma granularidade melhor que Project ou ProjectItem.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

SelectedItems Interface

Namespace EnvDTE