Size Height Property Delta Engine Documentation

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

public float Height { get; set; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Datatypes.SizeTests
Examples

4 unit tests call DeltaEngine.Datatypes.Size.Height
[Test]
public void CreateWithEqualWidthAndHeight()
{
    var size = new Size(-1.2f);
    Assert.AreEqual(-1.2f, size.Width);
    Assert.AreEqual(-1.2f, size.Height);
}
[Test]
public void CreateFromString()
{
    var size = new Size("1.2, 2.4");
    Assert.AreEqual(1.2f, size.Width);
    Assert.AreEqual(2.4f, size.Height);
}
[Test]
public void ChangeSize()
{
    var size = new Size(1.0f, 1.0f) { Height = 2.1f, Width = 2.1f };
    Assert.AreEqual(2.1f, size.Height);
    Assert.AreEqual(2.1f, size.Width);
}
See Also