Namespace: DeltaEngine.Entities
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Scenes.Tests.Controls.TextBoxTests
1 unit tests call DeltaEngine.Entities.DrawableEntity.RenderLayer
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[Test, CloseAfterFirstFrame] public void SaveAndLoad() { var stream = BinaryDataExtensions.SaveToMemoryStream(topTextBox); var loadedTextBox = (TextBox)stream.CreateFromMemoryStream(); Assert.AreEqual(Top, loadedTextBox.DrawArea); Assert.AreEqual("Hello", loadedTextBox.Text); Assert.AreEqual(2, loadedTextBox.RenderLayer); Assert.IsTrue(loadedTextBox.State.CanHaveFocus); Assert.AreEqual(topTextBox.children.Count, loadedTextBox.children.Count); }
See Also