Method GetTile
GetTile(int)
Gets the Tile element located at the specified index in this TilemapLayer.
public Tile GetTile(int index)
Parameters
Returns
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
Returns
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
PointThe column and row location of the Tile element to locate.
Returns
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.