Namespace: DeltaEngine.Rendering2D.Graphs
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering2D.Graphs.Tests.GraphTests
2 unit tests call DeltaEngine.Rendering2D.Graphs.Graph.PercentileSuffix
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: StringRemarks
Examples
[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