Table of Contents

Method GetTile

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

GetTile(int)

Gets the Tile element located at the specified index in this TilemapLayer.

public Tile GetTile(int index)

Parameters

index int

The index of the Tile element in this to locate.

Returns

Tile

The Tile element located

Exceptions

ArgumentOutOfRangeException

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

GetTile(int, int)

Gets the Tile element located at the specified column and row in this TilemapLayer.

public Tile GetTile(int column, int row)

Parameters

column int

The column of the Tile element to locate.

row int

The row of the Tile element to locate.

Returns

Tile

The Tile element located.

Exceptions

ArgumentOutOfRangeException

Thrown if either the column or rows specified are less than zero or are greater than or equal to the total number of columns or rows in this TilemapLayer.

GetTile(Point)

Gets the Tile element located at the specified column and row location in this TilemapLayer.

public Tile GetTile(Point location)

Parameters

location Point

The column and row location of the Tile element to locate.

Returns

Tile

The Tile element located.

Exceptions

ArgumentOutOfRangeException

Thrown if either the column or rows in the specified location are less than zero or are greater than or equal to the total number of columns or rows in this TilemapLayer.