Partilhar via


O Objeto ISEAddOnTool

Um objeto ISEAddonTool representa uma ferramenta adicional instalada que fornece funcionalidade adicional ao Windows PowerShell ISE. Um exemplo é a ferramenta de Comandos que pode mostrar clicando em Visualizar, depois no Add-on de Mostrar Comandos. Esta ferramenta torna-se então acessível ao manipular os vários objetos ISEAddOnTool disponíveis.

Cada ferramenta adicional pode estar associada tanto ao painel vertical como ao painel horizontal. O painel vertical está acoplado à extremidade direita do Windows PowerShell ISE. O painel horizontal está acoplado à borda inferior.

Cada separador PowerShell no Windows PowerShell ISE pode ter o seu próprio conjunto de ferramentas adicionais instaladas. Consulte $psISE.CurrentPowerShellTab.HorizontalAddOnTools e $psISE.CurrentPowerShellTab.VerticalAddOnTools para aceder à coleção de ferramentas disponíveis no separador atualmente selecionado ou às mesmas propriedades em qualquer um dos objetos PowerShellTab no objeto de coleção $psISE.PowerShellTabs .

Methods

Não existem métodos específicos do Windows PowerShell ISE disponíveis para objetos desta classe.

Propriedades

Controlo

Suportado no Windows PowerShell ISE 3.0 e posteriores, e não presente em versões anteriores.

A propriedade Control fornece acesso de leitura a muitos dos detalhes da ferramenta adicional Commands.

# View the properties of the Commands add-on tool.
# (assumes that it's visible in the vertical pane)
$psISE.CurrentVisibleVerticalTool.Control
HostObject                  : Microsoft.PowerShell.Host.ISE.ObjectModelRoot
Content                     :
HasContent                  :
ContentTemplate             :
ContentTemplateSelector     :
ContentStringFormat         :
BorderBrush                 :
BorderThickness             :
Background                  :
Foreground                  :
FontFamily                  :
FontSize                    :
FontStretch                 :
FontStyle                   :
FontWeight                  :
HorizontalContentAlignment  :
VerticalContentAlignment    :
TabIndex                    :
IsTabStop                   :
Padding                     :
Template                    : System.Windows.Controls.ControlTemplate
Style                       :
OverridesDefaultStyle       :
UseLayoutRounding           :
Triggers                    : {}
TemplatedParent             :
Resources                   : {System.Windows.Controls.TabItem}
DataContext                 :
BindingGroup                :
Language                    :
Name                        :
Tag                         :
InputScope                  :
ActualWidth                 : 370.75
ActualHeight                : 676.559097412109
LayoutTransform             :
Width                       :
MinWidth                    :
MaxWidth                    :
Height                      :
MinHeight                   :
MaxHeight                   :
FlowDirection               : LeftToRight
Margin                      :
HorizontalAlignment         :
VerticalAlignment           :
FocusVisualStyle            :
Cursor                      :
ForceCursor                 :
IsInitialized               : True
IsLoaded                    :
ToolTip                     :
ContextMenu                 :
Parent                      :
HasAnimatedProperties       :
InputBindings               :
CommandBindings             :
AllowDrop                   :
DesiredSize                 : 227.66,676.559097412109
IsMeasureValid              : True
IsArrangeValid              : True
RenderSize                  : 370.75,676.559097412109
RenderTransform             :
RenderTransformOrigin       :
IsMouseDirectlyOver         : False
IsMouseOver                 : False
IsStylusOver                : False
IsKeyboardFocusWithin       : False
IsMouseCaptured             :
IsMouseCaptureWithin        : False
IsStylusDirectlyOver        : False
IsStylusCaptured            :
IsStylusCaptureWithin       : False
IsKeyboardFocused           : False
IsInputMethodEnabled        :
Opacity                     :
OpacityMask                 :
BitmapEffect                :
Effect                      :
BitmapEffectInput           :
CacheMode                   :
Uid                         :
Visibility                  : Visible
ClipToBounds                : False
Clip                        :
SnapsToDevicePixels         : False
IsFocused                   :
IsEnabled                   :
IsHitTestVisible            :
IsVisible                   : True
Focusable                   :
PersistId                   : 1
IsManipulationEnabled       :
AreAnyTouchesOver           : False
AreAnyTouchesDirectlyOver   :
AreAnyTouchesCapturedWithin : False
AreAnyTouchesCaptured       :
TouchesCaptured             : {}
TouchesCapturedWithin       : {}
TouchesOver                 : {}
TouchesDirectlyOver         : {}
DependencyObjectType        : System.Windows.DependencyObjectType
IsSealed                    : False
Dispatcher                  : System.Windows.Threading.Dispatcher

IsVisible

Suportado no Windows PowerShell ISE 3.0 e posteriores, e não presente em versões anteriores.

A propriedade booleana que indica se a ferramenta adicional está atualmente visível no seu painel atribuído. Se for visível, podes definir a propriedade IsVisible para $false ocultar a ferramenta, ou definir a propriedade IsVisible para $true tornar uma ferramenta adicional visível no separador PowerShell dela. Note que, depois de uma ferramenta adicional ser ocultada, ela deixa de ser acessível através dos objetos CurrentVisibleHorizontalTool ou CurrentVisibleVerticalTool , e por isso não pode ser tornada visível usando esta propriedade nesse objeto.

# Hide the current tool in the vertical tool pane
$psISE.CurrentVisibleVerticalTool.IsVisible = $false
# Show the first tool on the currently selected PowerShell tab
$psISE.CurrentPowerShellTab.VerticalAddOnTools[0].IsVisible = $true

Nome

Suportado no Windows PowerShell ISE 3.0 e posteriores, e não presente em versões anteriores.

A propriedade de apenas leitura que recebe o nome da ferramenta adicional.

# Gets the name of the visible vertical pane add-on tool.
$psISE.CurrentVisibleVerticalTool.Name
Commands

Ver também