Objeto ISEAddOnTool

Um objeto ISEAddonTool representa uma ferramenta complementar instalada que fornece funcionalidade adicional ao Windows PowerShell ISE. Um exemplo é a ferramenta Comandos que você pode exibir clicando em Exibir e, em seguida, em Mostrar complemento de comando. Esta ferramenta é então acessível para você manipulando os vários objetos ISEAddOnTool disponíveis.

Cada ferramenta de complemento pode ser associada ao painel vertical ou ao painel horizontal. O painel vertical está encaixado na borda direita do Windows PowerShell ISE. O painel horizontal está encaixado na borda inferior.

Cada guia do PowerShell no Windows PowerShell ISE pode ter seu próprio conjunto de ferramentas complementares instalado. Consulte $psISE.CurrentPowerShellTab.HorizontalAddOnTools e $psISE.CurrentPowerShellTab.VerticalAddOnTools para acessar a coleção de ferramentas disponíveis para a guia atualmente selecionada ou as mesmas propriedades em qualquer um dos objetos PowerShellTab no objeto de coleção $psISE.PowerShellTabs.

Métodos

Não há métodos específicos do Windows PowerShell ISE disponíveis para objetos dessa classe.

Propriedades

Controlo

Com suporte no Windows PowerShell ISE 3.0 e posterior, e não presente em versões anteriores.

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

# View the properties of the Commands add-on tool.
# (assumes that it is 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

Com suporte no Windows PowerShell ISE 3.0 e posterior, e não presente em versões anteriores.

A propriedade Boolean que indica se a ferramenta de complemento está atualmente visível em seu painel atribuído. Se estiver visível, você pode definir a propriedade IsVisible para $false ocultar a ferramenta ou definir a propriedade IsVisible para $true tornar uma ferramenta complementar visível em sua guia PowerShell. Observe que depois que uma ferramenta de complemento está oculta, ela não é mais acessível por meio dos objetos CurrentVisibleHorizontalTool ou CurrentVisibleVerticalTool e, portanto, não pode ser tornada visível usando essa 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

Com suporte no Windows PowerShell ISE 3.0 e posterior, e não presente em versões anteriores.

A propriedade somente leitura que obtém o nome da ferramenta de complemento.

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

Consulte Também