次の方法で共有


ISEAddOnTool オブジェクト

ISEAddonToolオブジェクトは、Windows PowerShell ISEに追加機能を提供するインストール済みのアドオンツールを表します。 例えば、コマンドツールは「表示」をクリックし、「コマンドの表示」をクリックすることで表示できます。 このツールは、利用可能なさまざまな ISEAddOnTool オブジェクトを操作することでアクセスできます。

各アドオンツールは垂直パネルまたは水平パネルのいずれかに関連付けられることができます。 縦型ペインはWindows PowerShell ISEの右端にドッキングされています。 水平のガラスは下端にドッキングされています。

Windows PowerShell ISEの各PowerShellタブには、それぞれ独自のアドオンツールセットをインストールすることができます。 現在選択されているタブで利用可能なツールのコレクションや、$psISE.PowerShellTabsコレクションオブジェクト内の任意のPowerShellTabオブジェクト上の同じプロパティにアクセスするには、$psISE.CurrentPowerShellTab.HorizontalAddOnToolsおよび$psISE.CurrentPowerShellTab.VerticalAddOnToolsを参照してください。

Methods

このクラスのオブジェクトに対しては、Windows PowerShell専用のISEメソッドはありません。

プロパティ

コントロール

Windows PowerShell ISE 3.0以降でサポートされており、以前のバージョンには含まれていません。

Controlプロパティはコマンドアドオンツールの多くの詳細への読み取りアクセスを提供します。

# 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

Windows PowerShell ISE 3.0以降でサポートされており、以前のバージョンには含まれていません。

アドオンツールが割り当てられたパンで現在見えるかどうかを示すブール属性です。 もし見えている場合は、 IsVisible プロパティを $false に設定してツールを隠したり、 IsVisible プロパティを $true に設定してPowerShellタブでアドオンツールを表示にできます。アドオンツールが隠された後は、 CurrentVisibleHorizontalToolCurrentVisibleVerticalTool のオブジェクトからはアクセスできなくなり、このプロパティをそのオブジェクトで表示することはできません。

# 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

こちらもご覧ください