StatusStrip.SizingGrip 屬性

定義

取得或設定值,指出是否在控制項的右下角顯示縮放控點 (底框)。

public:
 property bool SizingGrip { bool get(); void set(bool value); };
public bool SizingGrip { get; set; }
member this.SizingGrip : bool with get, set
Public Property SizingGrip As Boolean

屬性值

Boolean

如果要顯示底框,則為 true,否則為 false。 預設為 true

範例

下列程式碼範例示範 StatusStrip 具有各種通用屬性集的 ,包括 SizingGrip 屬性。

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"

備註

您可以使用 SizingGrip 屬性來顯示底框,讓使用者在可調整大小時 StatusStrip 提供 的指示。

即使您將 SizingGrip 屬性設定為 true ,且 GripStyle 屬性設定為 Visible ,除非您也將 LayoutStyle 屬性設定為其中一個溢位值,否則不會顯示調整大小底框。 LayoutStyle如果 屬性設定為 FlowTable ,則不會顯示調整大小底框。

適用於