HierarchyEntity2D Remove Method (HierarchyObject2D)Delta Engine Documentation

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

public void Remove(
	HierarchyObject2D child
)

Implements

HierarchyObject2D Remove(HierarchyObject2D)
Remarks

Tests: FindTheWord.Tests.CharacterButtonTests
Examples

1 unit tests call DeltaEngine.Rendering2D.HierarchyEntity2D.Remove(DeltaEngine.Entities.HierarchyObject2D)
[Test]
public void NotClickableWhenLetterRemoved()
{
    var characterButton = new CharacterButton(0.5f, 0.5f, null);
    characterButton.Letter = 'S';
    characterButton.RemoveLetter();
    Assert.IsFalse(characterButton.IsClickable());
}
See Also