Graph PercentileSuffix 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 string PercentileSuffix { get; set; }

Property Value

Type: String
Remarks

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

2 unit tests call DeltaEngine.Rendering2D.Graphs.Graph.PercentileSuffix
[Test]
public void RenderFpsWithFivePercentiles()
{
    graph.Viewport = new Rectangle(0.0f, 0.0f, 10.0f, 60.0f);
    graph.NumberOfPercentiles = 5;
    graph.PercentileSuffix = "%";
    GraphLine line = graph.CreateLine("", LineColor);
    var fps = new FontText(Font.Default, "",
        new Rectangle(0.5f, 0.7f, 1.0f, 0.1f));
    graph.Add(line);
    graph.Add(fps);
    graph.Start<AddValueEveryFrame>();
}
[Test, CloseAfterFirstFrame]
public void ChangePercentileSuffix()
{
    Assert.AreEqual("", graph.PercentileSuffix);
    graph.PercentileSuffix = "%";
    graph.PercentileSuffix = "%";
    Assert.AreEqual("%", graph.PercentileSuffix);
}
See Also