Control.Bottom Control.Bottom Control.Bottom Control.Bottom Property

정의

컨트롤의 아래쪽 가장자리와 해당 컨테이너 클라이언트 영역의 위쪽 가장자리 사이의 거리(픽셀)를 가져옵니다.Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

public:
 property int Bottom { int get(); };
[System.ComponentModel.Browsable(false)]
public int Bottom { get; }
member this.Bottom : int
Public ReadOnly Property Bottom As Integer

속성 값

컨트롤의 아래쪽 가장자리와 해당 컨테이너 클라이언트 영역의 위쪽 가장자리 사이의 거리(픽셀)를 나타내는 Int32 값입니다.An Int32 representing the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

예제

다음 코드 예제에서는 합니다 Bottom 의 하 한을 정의 하는 속성을 TextBox 컨트롤 컨테이너의 클라이언트 영역을 기준으로 합니다.The following code example uses the Bottom property to define the lower limit of a TextBox control relative to the client area of the container.

   // This example demonstrates how to use the KeyUp event with the Help class to display
   // pop-up style help to the user of the application. When the user presses F1, the Help
   // class displays a pop-up window, similar to a ToolTip, near the control. This example assumes
   // that a TextBox control, named textBox1, has been added to the form and its KeyUp
   // event has been connected to this event handler method.
private:
   void textBox1_KeyUp( Object^ /*sender*/, System::Windows::Forms::KeyEventArgs^ e )
   {
      
      // Determine whether the key entered is the F1 key. Display help if it is.
      if ( e->KeyCode == Keys::F1 )
      {
         
         // Display a pop-up help topic to assist the user.
         Help::ShowPopup( textBox1, "Enter your first name", Point(textBox1->Right,this->textBox1->Bottom) );
      }
   }
// This example demonstrates how to use the KeyUp event with the Help class to display
// pop-up style help to the user of the application. When the user presses F1, the Help
// class displays a pop-up window, similar to a ToolTip, near the control. This example assumes
// that a TextBox control, named textBox1, has been added to the form and its KeyUp
// event has been contected to this event handler method.
private void textBox1_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{
    // Determine whether the key entered is the F1 key. Display help if it is.
    if(e.KeyCode == Keys.F1)
    {
        // Display a pop-up help topic to assist the user.
        Help.ShowPopup(textBox1, "Enter your first name", new Point(textBox1.Right, this.textBox1.Bottom));
    }
}
' This example demonstrates how to use the KeyUp event with the Help class to display
' pop-up style help to the user of the application. When the user presses F1, the Help
' class displays a pop-up window, similar to a ToolTip, near the control. This example assumes
' that a TextBox control, named textBox1, has been added to the form and its KeyUp
' event has been contected to this event handler method.
Private Sub textBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles textBox1.KeyUp
    ' Determine whether the key entered is the F1 key. Display help if it is.
    If e.KeyCode = Keys.F1 Then
        ' Display a pop-up help topic to assist the user.
        Help.ShowPopup(textBox1, "Enter your first name", New Point(textBox1.Right, Me.textBox1.Bottom))
    End If
End Sub

설명

이 속성의 값은 합계에는 Top 속성 값 및 Height 속성 값입니다.The value of this property is equal to the sum of the Top property value, and the Height property value.

Bottom 속성은 읽기 전용 속성입니다.The Bottom property is a read-only property. 값을 변경 하 여이 속성 값을 조작할 수 있습니다는 Top 또는 Height 호출 또는 속성을 SetBounds, SetBoundsCore, UpdateBounds, 또는 SetClientSizeCore 메서드.You can manipulate this property value by changing the value of the Top or Height properties or calling the SetBounds, SetBoundsCore, UpdateBounds, or SetClientSizeCore methods.

적용 대상

추가 정보