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)

[BrowsableAttribute(false)]
public int Bottom { get; }

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.

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.

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 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;
}
Return to top
Show: