DropdownList MaxDisplayCount Property Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public int MaxDisplayCount { get; set; }

Property Value

Type: Int32
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.DropdownListTests
Examples

2 unit tests call DeltaEngine.Scenes.Controls.DropdownList.MaxDisplayCount
[Test, CloseAfterFirstFrame]
public void DefaultProperties()
{
    Assert.AreEqual(Values, dropdownList.Values);
    Assert.AreEqual(Values[0], dropdownList.SelectedValue);
    Assert.AreEqual(Center, dropdownList.DrawArea);
    Assert.AreEqual(Color.Gray, dropdownList.Color);
    Assert.AreEqual(3, dropdownList.SelectBox.texts.Count);
    Assert.IsFalse(dropdownList.IsPauseable);
    Assert.AreEqual(3, dropdownList.MaxDisplayCount);
}
[Test, CloseAfterFirstFrame]
public void ChangeMaxDisplayCount()
{
    dropdownList.MaxDisplayCount = 4;
    Assert.AreEqual(4, dropdownList.MaxDisplayCount);
}
See Also