Property this
this[int]
Gets the TextureRegion element at the specified index in this TextureAtlas.
public TextureRegion this[int index] { get; }
Parameters
index
intThe 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
stringThe 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.