int IndexOfCellAtX(nfloat x) { var cell = ((NSPathCell)Cell).GetPathComponent(new CGPoint(x, Frame.Height / 2), Frame, this); var i = PathComponentCells.IndexOf(cell); if (i > -1) { i = VisibleCellIds [i]; } return(i); }
bool UpdateNextCellForResponderChain(int fromPosition) { for (focusedCellIndex = fromPosition; focusedCellIndex < Cells.Length; focusedCellIndex++) { var cell = Cells [focusedCellIndex].Cell; if (PathComponentCells.Contains(cell) && cell.Enabled) { return(true); } } return(false); }
bool UpdatePreviousCellForResponderChain(int fromPosition) { for (focusedCellIndex = fromPosition; focusedCellIndex >= 0; focusedCellIndex--) { var cell = Cells [focusedCellIndex].Cell; if (PathComponentCells.Contains(cell) && cell.Enabled) { return(true); } } return(false); }