/// <summary> /// 원하는 셀을 보여 준다. /// </summary> /// <param name="fp"></param> /// <param name="sv"></param> /// <param name="row"></param> /// <param name="col"></param> public static void Invoke_ShowCell(FarPoint.Win.Spread.FpSpread fp, FarPoint.Win.Spread.SheetView sv, int row, int col) { if (fp.InvokeRequired) { fp.BeginInvoke(new delShowCell(Invoke_ShowCell), new object[] { fp, sv, row, col }); return; } sv.SetActiveCell(row, col, true); fp.ShowActiveCell(VerticalPosition.Center, HorizontalPosition.Center); }
private void SetActiveCell(FarPoint.Win.Spread.FpSpread spread, FarPoint.Win.Spread.SheetView sheet, int row, int column) { if (sheet.RowCount == 0 || sheet.Cells[row, column] == null) { return; } if (sheet.ActiveRow != null) { sheet.ActiveRow.BackColor = Color.White; } sheet.Rows[row].BackColor = Constants.Constants.ACTIVE_COLOR; sheet.SetActiveCell(row, column); spread.ShowActiveCell(VerticalPosition.Nearest, HorizontalPosition.Nearest); }