Table of Contents

Method RemoveRegion

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

RemoveRegion(int)

Removes the TextureRegion element at the specified index from this TextureAtlas.

public bool RemoveRegion(int index)

Parameters

index int

The index of the TextureRegion element to remove.

Returns

bool

true if the TextureRegion 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 TextureRegion element in this TextureAtlas.

RemoveRegion(string)

Removes the TextureRegion element with the specified name from this TextureAtlas.

public bool RemoveRegion(string name)

Parameters

name string

The name of the TextureRegion element to remove.

Returns

bool

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