Table of Contents

Method RemoveLayer

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

RemoveLayer(int)

Removes the TilemapLayer element at the specified index in this Tilemap.

public bool RemoveLayer(int index)

Parameters

index int

The index of the TilemapLayer element to remove from this Tilemap.

Returns

bool

true if the TilemapLayer element was successfully removed; otherwise, false. This method returns false if the specified index is less than zero or is greater than or equal to the total number of TilemapLayer elements in this Tilemap.

RemoveLayer(string)

Removes the TilemapLayer element with the specified name from this Tilemap.

public bool RemoveLayer(string name)

Parameters

name string

The name of the TilemapLayer element to remove from this Tilemap

Returns

bool

true if the TilemapLayer element was successfully removed; otherwise, false. This method returns false if this Tilemap does not contain a TilemapLayer element with the specified name.

RemoveLayer(TilemapLayer)

Removes the given TilemapLayer element from this Tilemap.

public bool RemoveLayer(TilemapLayer layer)

Parameters

layer TilemapLayer

The TilemapLayer element to remove from this Tilemap.

Returns

bool

true if the TilemapLayer element was removed successfully; otherwise, false. This method returns false if this Tilemap does not contain the TilemapLayer element given.