public bool IsCellSelected(int index) { if (this.Cells.Count == 0) { return false; } if (index < 0 || index >= this.Cells.Count) { return false; } return this.Cells[index].Selected; }