AutoArrangingMenu Clear Method Delta Engine Documentation

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

public override void Clear()
Remarks

Tests: DeltaEngine.Scenes.Tests.AutoArrangingMenuTests
Examples

2 unit tests call DeltaEngine.Scenes.AutoArrangingMenu.Clear
[Test, CloseAfterFirstFrame]
public void ClearClearsButtons()
{
    menu.AddMenuOption(() => { });
[Test, CloseAfterFirstFrame]
public void ClearMenuOptionsLeavesOtherControlsAlone()
{
    var logo = new Material(ShaderFlags.Position2DTextured, "DeltaEngineLogo");
    menu.Add(new Sprite(logo, Rectangle.One));
    menu.AddMenuOption(() => { });
See Also