StatusStrip.Dock Özellik

Tanım

Hangi StatusStrip kenarlıkların üst denetimine yerleştirileceğini alır veya ayarlar ve öğesinin StatusStrip üst denetimiyle nasıl yeniden boyutlandırileceğini belirler.

public:
 virtual property System::Windows::Forms::DockStyle Dock { System::Windows::Forms::DockStyle get(); void set(System::Windows::Forms::DockStyle value); };
public override System.Windows.Forms.DockStyle Dock { get; set; }
member this.Dock : System.Windows.Forms.DockStyle with get, set
Public Overrides Property Dock As DockStyle

Özellik Değeri

DockStyle

Değerlerden DockStyle biri. Varsayılan değer: Bottom.

Örnekler

Aşağıdaki kod örneği, özelliği de dahil olmak üzere çeşitli ortak özellikler kümesine sahip bir StatusStrip öğesini Dock gösterir.

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"

Açıklamalar

Dock üst denetimi yeniden boyutlandırılırken öğesinin StatusStrip nasıl otomatik olarak yeniden boyutlandırılacağını tanımlamak için özelliğini kullanın. Örneğin, ayarı Dock Left öğesinin StatusStrip kendisini üst denetiminin sol kenarlarıyla hizalamasına ve üst denetim yeniden boyutlandırılırken yeniden boyutlandırmasına neden olur. Denetimler, formun Z ekseni (derinlik) boyunca bir formdaki denetimlerin görsel katmanlanması olan Z sıralarına yerleştirilir.

Denetim, üst kapsayıcısının bir kenarına sabitlenebilir veya tüm kenarlara yerleştirilip üst kapsayıcıyı doldurabilir.

Şunlara uygulanır