SelectBoxTests DrawLoadedSelectBox Method Delta Engine Documentation

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

public void DrawLoadedSelectBox()
Examples

[Test]
public void DrawLoadedSelectBox()
{
    SetToTenValues();
    var stream = BinaryDataExtensions.SaveToMemoryStream(selectBox);
    selectBox.IsActive = false;
    var loadedSelectBox = (SelectBox)stream.CreateFromMemoryStream(); 
    var text = new FontText(Font.Default, "", new Rectangle(0.4f, 0.7f, 0.2f, 0.1f));
    loadedSelectBox.LineClicked +=
        lineNo => text.Text = loadedSelectBox.Values[lineNo] + " clicked"; //ncrunch: no coverage
}
See Also