Rectangle Bottom Property Delta Engine Documentation

Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public float Bottom { get; set; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Datatypes.RectangleTests
Examples

4 unit tests call DeltaEngine.Datatypes.Rectangle.Bottom
[Test]
public void Bottom()
{
    var rect = new Rectangle(1, 2, 10, 20) { Bottom = 23 };
    Assert.AreEqual(3, rect.Top);
    Assert.AreEqual(23, rect.Bottom);
    Assert.AreEqual(20, rect.Height);
}
[Test]
public void BottomLeft()
{
    var rect = new Rectangle(1, 2, 10, 20);
    Assert.AreEqual(new Vector2D(1, 22), rect.BottomLeft);
}
[Test]
public void BottomRight()
{
    var rect = new Rectangle(1, 2, 10, 20);
    Assert.AreEqual(new Vector2D(11, 22), rect.BottomRight);
}
See Also