Table of Contents

Property this

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

this[int]

Gets the TextureRegion element at the specified index in this TextureAtlas.

public TextureRegion this[int index] { get; }

Parameters

index int

The index of the TextureRegion element in this TextureAtlas to locate.

Property Value

TextureRegion

The TextureRegion element that was located at the specified index in this TextureAtlas.

Exceptions

ArgumentOutOfRangeException

Thrown if the specified index is less than zero or is greater than or equal to the total number of TextureRegion elements in this TextureAtlas.

this[string]

Gets the TextureRegion element with the specified name in this TextureAtlas.

public TextureRegion this[string name] { get; }

Parameters

name string

The name of the TextureRegion element in this TextureAtlas to locate.

Property Value

TextureRegion

The TextureRegion element that was located with the specified name in this TextureAtlas.

Exceptions

KeyNotFoundException

Thrown if this TextureAtlas does not contain a TextureRegion with the specified name.