The Rectangles property provides access to the list of AxisAlignedRectangles stored in a TileShapeCollection. This list will be ordered based on the TileShapeCollection's SortAxis property.
The following code shows how to loop through all rectangles in a TileShapeCollection and perform custom logic: