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

[Test, CloseAfterFirstFrame]
public void ChangingLabelVisibilityChangesFontTextVisibility()
{
    Assert.IsTrue(label.IsVisible);
    Assert.IsTrue(label.Get<FontText>().IsVisible);
    label.IsVisible = false;
    Assert.IsFalse(label.IsVisible);
    Assert.IsFalse(label.Get<FontText>().IsVisible);
}
See Also