Grid2D Dimension Property Delta Engine Documentation

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

public Size Dimension { get; set; }

Property Value

Type: Size
Remarks

Tests: DeltaEngine.Rendering2D.Shapes.Tests.Grid2DTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Shapes.Grid2D.Dimension
[Test, CloseAfterFirstFrame]
public void ChangeDimensionAndScale()
{
    var grid = new Grid2D(new Size(2), Vector2D.Half);
    grid.Dimension = new Size(4);
    grid.GridScale = 2;
    Assert.AreEqual(2, grid.GridScale);
}
See Also