Graph Origin Property Delta Engine Documentation

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

public Vector2D Origin { get; set; }

Property Value

Type: Vector2D
Remarks

Tests: DeltaEngine.Rendering2D.Graphs.Tests.GraphTests
Examples

2 unit tests call DeltaEngine.Rendering2D.Graphs.Graph.Origin
[Test, CloseAfterFirstFrame]
public void ChangeOrigin()
{
    Assert.AreEqual(Vector2D.Zero, graph.Origin);
    graph.Origin = Origin;
    graph.Origin = Origin;
    Assert.AreEqual(Origin, graph.Origin);
}
[Test, CloseAfterFirstFrame]
public void RenderGraphIncludingKey()
{
    graph.CreateLine("key", LineColor);
    graph.KeyVisibility = true;
    graph.RefreshKey();
    graph.KeyVisibility = true;
    graph.PercentileLabelsIsVisible = false;
    graph.PercentilesIsVisible = false;
    graph.Origin = graph.Origin;
    AdvanceTimeAndUpdateEntities();
}
See Also