ToolStripStatusLabel.Spring 속성

정의

폼 크기를 조정할 때 ToolStripStatusLabelStatusStrip의 사용 가능한 공간을 자동으로 채우는지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

폼 크기를 조정할 때 ToolStripStatusLabelStatusStrip의 사용 가능한 공간을 자동으로 채우면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 코드 예제에서는 속성을 포함 하 여 Spring 다양 ToolStripStatusLabel 한 공통 속성에 대 한 구문을 보여 줍니다.

// 
toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top)
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised;
toolStripStatusLabel1.IsLink = true;
toolStripStatusLabel1.Name = "toolStripStatusLabel1";
toolStripStatusLabel1.Size = new System.Drawing.Size(246, 20);
toolStripStatusLabel1.Spring = true;
toolStripStatusLabel1.Text = "toolStripStatusLabel1";
toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left;
' 
toolStripStatusLabel1.BorderSides = CType(System.Windows.Forms.ToolStripStatusLabelBorderSides.Left Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Top Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Right Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom, System.Windows.Forms.ToolStripStatusLabelBorderSides)
toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised
toolStripStatusLabel1.IsLink = True
toolStripStatusLabel1.Name = "toolStripStatusLabel1"
toolStripStatusLabel1.Size = New System.Drawing.Size(246, 20)
toolStripStatusLabel1.Spring = True
toolStripStatusLabel1.Text = "toolStripStatusLabel1"
toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left

설명

Spring 속성을 로 true 설정하여 컨테이너와 함께 의 크기를 원활하게 조정할 수 있도록 ToolStripStatusLabel 합니다.

적용 대상

추가 정보