次の方法で共有


Control.Bottom プロパティ

コントロールの下端とコンテナのクライアント領域の上端の間の距離をピクセルで取得します。

Public ReadOnly Property Bottom As Integer
[C#]
public int Bottom {get;}
[C++]
public: __property int get_Bottom();
[JScript]
public function get Bottom() : int;

プロパティ値

Int32 は、コントロールの下端とコンテナのクライアント領域の上端の間の距離をピクセルで示します。

解説

このプロパティの値は、 Top プロパティ値と Height プロパティ値の合計に等しくなります。

Bottom プロパティは読み取り専用です。 Top プロパティまたは Height プロパティの値を変更するか、あるいは SetBoundsSetBoundsCoreUpdateBounds 、または SetClientSizeCore の各メソッドを呼び出すことによって、このプロパティ値を操作できます。

使用例

 
' 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 handling 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 'textBox1_KeyUp

[C#] 
// 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 handling 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));
    }
}

[C++] 
// 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 handling 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, S"Enter your first name",
         Point(textBox1->Right, this->textBox1->Bottom));
   }
}

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

Control クラス | Control メンバ | System.Windows.Forms 名前空間 | Top | Height