Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Scenes.Tests.Controls.ScrollbarTests
2 unit tests call DeltaEngine.Scenes.Controls.Scrollbar.MinValue
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[Test, CloseAfterFirstFrame] public void DefaultValues() { Assert.AreEqual(0, scrollbar.MinValue); Assert.AreEqual(99, scrollbar.MaxValue); Assert.AreEqual(10, scrollbar.ValueWidth); Assert.AreEqual(90, scrollbar.LeftValue); Assert.AreEqual(95, scrollbar.CenterValue); Assert.AreEqual(99, scrollbar.RightValue); }
[Test, CloseAfterFirstFrame] public void UpdateValues() { scrollbar.MinValue = 1; scrollbar.MaxValue = 10; scrollbar.ValueWidth = 2; scrollbar.CenterValue = 4; Assert.AreEqual(1, scrollbar.MinValue); Assert.AreEqual(10, scrollbar.MaxValue); Assert.AreEqual(4, scrollbar.CenterValue); Assert.AreEqual(2, scrollbar.ValueWidth); }
See Also