StatusStrip クラス
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

<ComVisibleAttribute(True)> _ <ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _ Public Class StatusStrip Inherits ToolStrip
[ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] public class StatusStrip : ToolStrip
[ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] public ref class StatusStrip : public ToolStrip

StatusStrip では、以前のバージョンの StatusBar コントロールの機能が置換または拡張されていますが、下位互換性を維持し、必要に応じて今後使用できるように、StatusBar も残されています。
StatusStrip コントロールは、Form に表示されているオブジェクトに関する情報、オブジェクトのコンポーネント、またはアプリケーション内のそのオブジェクトの操作に関連したコンテキスト情報を表示します。通常、StatusStrip コントロールは ToolStripStatusLabel オブジェクトで構成され、各オブジェクトにはテキスト、アイコン、またはその両方が表示されます。また StatusStrip には、ToolStripDropDownButton、ToolStripSplitButton、ToolStripProgressBar の各コントロールを含めることもできます。
既定の StatusStrip にはパネルがありません。StatusStrip にパネルを追加するには、ToolStripItemCollection.AddRange メソッドを使用するか、デザイン時に StatusStrip Items コレクション エディタ を使用して、項目の追加、削除、並べ替えや、プロパティの変更を行います。一般的なコマンドを実行するには、デザイン時に [StatusStrip タスク] ダイアログ ボックス を使用します。

StatusStrip に各種の共通プロパティを設定するためのコード例を次に示します。
Imports System Imports System.Text Imports System.Windows.Forms Public Class Form1 Inherits Form Private statusStrip1 As StatusStrip Private toolStripStatusLabel1 As ToolStripStatusLabel Public Sub New() InitializeComponent() End Sub <STAThread()> _ Shared Sub Main() Application.EnableVisualStyles() Application.Run(New Form1()) End Sub Private Sub InitializeComponent() statusStrip1 = New System.Windows.Forms.StatusStrip() toolStripStatusLabel1 = New System.Windows.Forms.ToolStripStatusLabel() statusStrip1.SuspendLayout() SuspendLayout() ' ' The following code example demonstrates the syntax for setting ' various StatusStrip properties. statusStrip1.Dock = System.Windows.Forms.DockStyle.Top statusStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible statusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {toolStripStatusLabel1}) statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow statusStrip1.Location = New System.Drawing.Point(0, 0) statusStrip1.Name = "statusStrip1" statusStrip1.ShowItemToolTips = True statusStrip1.Size = New System.Drawing.Size(292, 22) statusStrip1.SizingGrip = False statusStrip1.Stretch = False statusStrip1.TabIndex = 0 statusStrip1.Text = "statusStrip1" ' ' toolStripStatusLabel1 ' toolStripStatusLabel1.Name = "toolStripStatusLabel1" toolStripStatusLabel1.Size = New System.Drawing.Size(109, 17) toolStripStatusLabel1.Text = "toolStripStatusLabel1" ' ' Form1 ' ClientSize = New System.Drawing.Size(292, 273) Controls.Add(statusStrip1) Name = "Form1" statusStrip1.ResumeLayout(False) statusStrip1.PerformLayout() ResumeLayout(False) PerformLayout() End Sub End Class
using System; using System.Text; using System.Windows.Forms; namespace WindowsApplication4 { public class Form1 : Form { private StatusStrip statusStrip1; private ToolStripStatusLabel toolStripStatusLabel1; public Form1() { InitializeComponent(); } [STAThread] static void Main() { Application.EnableVisualStyles(); Application.Run(new Form1()); } private void InitializeComponent() { statusStrip1 = new System.Windows.Forms.StatusStrip(); toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); statusStrip1.SuspendLayout(); SuspendLayout(); // // The following code example demonstrates the syntax for setting // various StatusStrip properties. statusStrip1.Dock = System.Windows.Forms.DockStyle.Top; statusStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible; statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { toolStripStatusLabel1}); statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; statusStrip1.Location = new System.Drawing.Point(0, 0); statusStrip1.Name = "statusStrip1"; statusStrip1.ShowItemToolTips = true; statusStrip1.Size = new System.Drawing.Size(292, 22); statusStrip1.SizingGrip = false; statusStrip1.Stretch = false; statusStrip1.TabIndex = 0; statusStrip1.Text = "statusStrip1"; // // toolStripStatusLabel1 // toolStripStatusLabel1.Name = "toolStripStatusLabel1"; toolStripStatusLabel1.Size = new System.Drawing.Size(109, 17); toolStripStatusLabel1.Text = "toolStripStatusLabel1"; // // Form1 // ClientSize = new System.Drawing.Size(292, 273); Controls.Add(statusStrip1); Name = "Form1"; statusStrip1.ResumeLayout(false); statusStrip1.PerformLayout(); ResumeLayout(false); PerformLayout(); } } }

System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ToolStrip
System.Windows.Forms.StatusStrip


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- StatusStrip クラスのページへのリンク