ISEAddOnTool オブジェクト
ISEAddonTool オブジェクトは、Windows PowerShell ISE に追加機能を提供するインストール済みのアドオン ツールを表します。 たとえば、コマンド ツールは、[ビュー] クリックし、[コマンド アドオンの表示] クリックして表示できます。 このツールは、ISEAddOnTool オブジェクトで使用できるさまざまな を操作することでアクセスできます。
各アドオン ツールは、垂直ペインまたは水平ペインに関連付けることができます。 垂直ウィンドウは、Windows PowerShell ISE の右端にドッキングされます。 水平ウィンドウは下端にドッキングされます。
Windows PowerShell ISE の各 PowerShell タブには、独自のアドオン ツールセットをインストールできます。 $psISE.CurrentPowerShellTab.HorizontalAddOnTools および $psISE.CurrentPowerShellTab.VerticalAddOnTools を参照して、現在選択されているタブで使用できるツールのコレクション、または $psISE.PowerShellTabs コレクション オブジェクトの PowerShellTab オブジェクトの同じプロパティにアクセスします。
メソッド
このクラスのオブジェクトに使用できる Windows PowerShell ISE 固有のメソッドはありません。
プロパティ
コントロール
Windows PowerShell ISE 3.0 以降でサポートされており、以前のバージョンには存在しません。
Control プロパティは、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
Windows PowerShell ISE 3.0 以降でサポートされており、以前のバージョンには存在しません。
アドオン ツールが割り当てられたウィンドウに現在表示されているかどうかを示すブール型プロパティ。 表示されている場合は、IsVisible プロパティを $false
に設定してツールを非表示にするか、IsVisible プロパティを $true
に設定して、アドオン ツールを PowerShell タブに表示させることができます。アドオン ツールが非表示になると、CurrentVisibleHorizontalTool または CurrentVisibleVerticalTool オブジェクト からアクセスできなくなるため、そのオブジェクトでこのプロパティを使用して表示することはできません。
# 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
名前
Windows PowerShell ISE 3.0 以降でサポートされており、以前のバージョンには存在しません。
アドオン ツールの名前を取得する読み取り専用プロパティ。
# Gets the name of the visible vertical pane add-on tool.
$psISE.CurrentVisibleVerticalTool.Name
Commands
関連項目
PowerShell