Aracılığıyla paylaş


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ırıldığını 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

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ıldıkçe öğesinin StatusStrip otomatik olarak nasıl yeniden boyutlandırılacağını tanımlamak için özelliğini kullanın. Örneğin ayarı, DockLeft öğesinin StatusStrip kendisini üst denetiminin sol kenarlarıyla hizalamasına ve üst denetim yeniden boyutlandırıldıkçe 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