Grid2D IsActive 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 override bool IsActive { set; }

Property Value

Type: Boolean
Remarks

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

2 unit tests call DeltaEngine.Rendering2D.Shapes.Grid2D.IsActive
[Test]
public void RenderQuadraticGridWithSizeOfOne()
{
    var grid = new Grid2D(new Size(2), Vector2D.Half);
    AssertQuadraticGrid(2, grid);
    foreach (var line in grid.lines)
        Assert.IsTrue(line.IsActive);
}
[Test, CloseAfterFirstFrame]
public void InactivatingInactivatesLines()
{
    var grid = new Grid2D(new Size(2), Vector2D.Half);
    grid.IsActive = false;
    foreach (var line in grid.lines)
        Assert.IsFalse(line.IsActive);
}
See Also