SimpleShape.Bottom Property

Gets the distance, in pixels, between the bottom edge of the shape and the top edge of its container's client area.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

'Declaration
<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

Property Value

Type: System.Int32
An Int32 that represents the distance, in pixels, between the bottom edge of the shape and the top edge of its container's client area.

Remarks

The value of this property is equal to the sum of the Top property value and the Height property value.

The Bottom property is a read-only property. You can change this property value by changing the value of the Top or Height property.

Examples

The following example shows how to use the Bottom and Right properties to position a shape. This example requires that you have two RectangleShape controls named RectangleShape1 and RectangleShape2 on a form.

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 Security

See Also

Reference

SimpleShape Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

Introduction to the Line and Shape Controls (Visual Studio)

How to: Draw Lines with the LineShape Control (Visual Studio)

How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)