作成日: 2026/03/25 最終更新日: 2026/03/25
文書種別
使用方法
詳細
Windowsフォーム用のViewerコントロールのツールバーは、.NET標準のToolStripクラスとToolStripContainerクラスで構成されています。
表示位置を変更したい場合は、Viewer.ControlsプロパティからToolStripContainerオブジェクトを取得し、ToolStripPanel.Joinメソッドを実行します。
◆サンプルコード (C#)
var tsc = (ToolStripContainer)viewer1.Controls[0];
tsc.BottomToolStripPanelVisible = true;
tsc.BottomToolStripPanel.Join(viewer1.Toolbar.ToolStrip);
tsc.BottomToolStripPanel.Join(viewer1.TouchModeToolbar.ToolStrip);◆サンプルコード (VB.NET)
Dim tsc As ToolStripContainer = CType(Viewer1.Controls(0), ToolStripContainer)
tsc.BottomToolStripPanelVisible = True
tsc.BottomToolStripPanel.Join(Viewer1.Toolbar.ToolStrip)
tsc.BottomToolStripPanel.Join(Viewer1.TouchModeToolbar.ToolStrip)