LabelTests DrawLoadedLabel 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 DrawLoadedLabel()
Examples

[Test]
public void DrawLoadedLabel()
{
    label.Text = "Original";
    var stream = BinaryDataExtensions.SaveToMemoryStream(label);
    var loadedLabel = (Label)stream.CreateFromMemoryStream();
    loadedLabel.Text = "Loaded";
    loadedLabel.DrawArea = loadedLabel.DrawArea.Move(0.0f, 0.15f);
}
See Also