StatusStrip.Dock プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > StatusStrip.Dock プロパティの意味・解説 

StatusStrip.Dock プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

StatusStrip の境界のうち、親コントロールドッキングする境界取得または設定しますまた、StatusStripサイズが親コントロール内でどのように変化するかを決定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Overrides Property
 Dock As DockStyle
Dim instance As StatusStrip
Dim value As DockStyle

value = instance.Dock

instance.Dock = value
public override DockStyle Dock { get; set;
 }
public:
virtual property DockStyle Dock {
    DockStyle get () override;
    void set (DockStyle value) override;
}
/** @property */
public DockStyle get_Dock ()

/** @property */
public void set_Dock (DockStyle value)

プロパティ
DockStyle 値の 1 つ既定値Bottom です。

解説解説
使用例使用例

StatusStrip に、Dock プロパティを含む各種の共通プロパティ設定するためのコード例次に示します

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"
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";
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

StatusStrip.Dock プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



StatusStrip.Dock プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS