Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Un oggetto ISEAddonTool rappresenta uno strumento aggiuntivo installato che fornisce funzionalità aggiuntive per Windows PowerShell ISE. Un esempio è lo strumento comandi che è possibile visualizzare facendo clic su Visualizza, quindi Mostra componente aggiuntivo comando. Questo strumento è quindi accessibile modificando i vari oggetti ISEAddOnTool disponibili.
Ogni strumento aggiuntivo può essere associato al riquadro verticale o al riquadro orizzontale. Il riquadro verticale è ancorato al bordo destro di Windows PowerShell ISE. Il riquadro orizzontale è ancorato al bordo inferiore.
Ogni scheda di PowerShell in Windows PowerShell ISE può avere un proprio set di strumenti aggiuntivi installati. Vedere $psISE.CurrentPowerShellTab.HorizontalAddOnTools e $psISE.CurrentPowerShellTab.VerticalAddOnTools per accedere all'insieme di strumenti disponibili per la scheda attualmente selezionata o le stesse proprietà di uno qualsiasi degli oggetti di PowerShellTab nell'insieme $psISE.PowerShellTabs.
Metodi
Non sono disponibili metodi specifici di Windows PowerShell ISE per gli oggetti di questa classe.
Proprietà
Controllo
Supportato in Windows PowerShell ISE 3.0 e versioni successive e non presente nelle versioni precedenti.
La proprietà controllo fornisce l'accesso in lettura a molti dettagli dello strumento aggiuntivo Comandi.
# 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
Supportato in Windows PowerShell ISE 3.0 e versioni successive e non presente nelle versioni precedenti.
Proprietà booleana che indica se lo strumento aggiuntivo è attualmente visibile nel riquadro assegnato. Se è visibile, è possibile impostare la proprietà IsVisible su $false
per nascondere lo strumento oppure impostare la proprietà IsVisible su $true
per rendere visibile uno strumento aggiuntivo nella scheda di PowerShell. Si noti che dopo che uno strumento aggiuntivo è nascosto, non è più accessibile tramite l'CurrentVisibleHorizontalTool o CurrentVisibleVerticalTool e pertanto non può essere reso visibile utilizzando questa proprietà su tale 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 versioni successive e non presente nelle versioni precedenti.
Proprietà di sola lettura che ottiene il nome dello strumento aggiuntivo.
# Gets the name of the visible vertical pane add-on tool.
$psISE.CurrentVisibleVerticalTool.Name
Commands