Method IsEmpty
IsEmpty(int)
Returns a value that indicates whether the Tile element at the specified index in this TilemapLayer is empty.
public bool IsEmpty(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.
IsEmpty(int, int)
Returns a value that indicates whether the Tile element at the specified column and row in this TilemapLayer is empty.
public bool IsEmpty(int column, int row)
Parameters
Returns
- bool
true if the Tile element at the specified column and row in this TilemapLayer is empty; otherwise, false.
Exceptions
- ArgumentOutOfRangeException
Thrown if either the column or row specified is less than zero or if either is greater than or equal to the total number of columns or rows in this TilemapLayer.
IsEmpty(Point)
Returns a value that indicates whether the Tile element at the specified column and row location in this TilemapLayer is empty.
public bool IsEmpty(Point location)
Parameters
location
PointThe column and row location of the Tile element to check.
Returns
- bool
true if the Tile element at the specified column and row location in this TilemapLayer is empty; otherwise, false.
Exceptions
- ArgumentOutOfRangeException
Thrown if either the column or row in the specified location is less than zero or if either is greater than or equal to the total number of columns or rows in this TilemapLayer.