Condividi tramite


L'oggetto ISEAddOnTool

Un oggetto ISEAddonTool rappresenta uno strumento aggiuntivo installato che fornisce funzionalità aggiuntive a Windows PowerShell ISE. Un esempio è lo strumento Comandi che puoi visualizzare cliccando su Visualizza, poi sull'add-on Mostra Comandi. Questo strumento è quindi accessibile a te manipolando i vari oggetti ISEAddOnTool disponibili.

Ogni strumento aggiuntivo può essere associato sia al pannello verticale che a quello orizzontale. Il pannello verticale è collegato al bordo destro di Windows PowerShell ISE. Il pannello orizzontale è attaccato al bordo inferiore.

Ogni scheda PowerShell in Windows PowerShell ISE può avere installato un proprio set di strumenti aggiuntivi. Consulta $psISE.CurrentPowerShellTab.HorizontalAddOnTools e $psISE.CurrentPowerShellTab.VerticalAddOnTools per accedere alla collezione di strumenti disponibili nella scheda attualmente selezionata o alle stesse proprietà su uno qualsiasi degli oggetti PowerShellTab nell'oggetto della collezione $psISE.PowerShellTabs .

Methods

Non sono disponibili metodi specifici per Windows PowerShell ISE per oggetti di questa classe.

Proprietà

Controllo

Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.

La proprietà Control fornisce accesso in lettura a molti dettagli dello strumento aggiuntivo Comandi.

# 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

Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.

La proprietà booleana che indica se lo strumento aggiuntivo è attualmente visibile nel pannello assegnato. Se è visibile, puoi impostare la proprietà IsVisible per $false nascondere lo strumento, oppure impostare la proprietà IsVisible per $true rendere visibile uno strumento aggiuntivo nella sua scheda PowerShell. Nota che dopo che uno strumento aggiuntivo è nascosto, non è più accessibile tramite gli oggetti CurrentVisibleHorizontalTool o CurrentVisibleVerticalTool , e quindi non può essere reso visibile usando questa proprietà su quell'oggetto.

# 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

Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.

La proprietà di sola lettura che prende il nome dello strumento aggiuntivo.

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

Vedere anche