共用方式為


SimpleShape.Bottom 屬性

取得圖形的下邊緣和其容器的工作區 (Client Area) 上邊緣之間的距離 (以像素為單位)。

命名空間:  Microsoft.VisualBasic.PowerPacks
組件:  Microsoft.VisualBasic.PowerPacks.Vs (在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

語法

'宣告
<BrowsableAttribute(False)> _
Public ReadOnly Property Bottom As Integer
[BrowsableAttribute(false)]
public int Bottom { get; }
[BrowsableAttribute(false)]
public:
property int Bottom {
    int get ();
}
[<BrowsableAttribute(false)>]
member Bottom : int with get
function get Bottom () : int

屬性值

類型:Int32
Int32表示像素,圖形的下邊緣和其容器用戶端區域的上邊緣之間的距離。

備註

這個屬性的值的總和等於Top屬性值和Height屬性值。

Bottom屬性是唯讀屬性。 您可以變更這個屬性值的值變更TopHeight屬性。

範例

下列範例示範如何使用Bottom和Right定位圖形的屬性。 這個範例需要您有兩個RectangleShape名 RectangleShape1 和 RectangleShape2 為表單上的控制項。

Private Sub RectangleShape1_Click() Handles RectangleShape1.Click
    ' Set the upper-left corner of Rectangle2  
    ' to the lower-right corner of Rectangle1.
    RectangleShape2.Left = RectangleShape1.Right
    RectangleShape2.Top = RectangleShape1.Bottom
End Sub
private void rectangleShape1_Click(System.Object sender, System.EventArgs e)
{
    // Set the upper-left corner of Rectangle2  
    // to the lower-right corner of Rectangle1.
    rectangleShape2.Left = rectangleShape1.Right;
    rectangleShape2.Top = rectangleShape1.Bottom;
}

.NET Framework 安全性

請參閱

參考

SimpleShape 類別

Microsoft.VisualBasic.PowerPacks 命名空間

其他資源

Line 和 Shape 控制項簡介 (Visual Studio)

如何:使用 LineShape 控制項繪製線條 (Visual Studio)

如何:使用 OvalShape 和 RectangleShape 控制項繪製圖案 (Visual Studio)