你好 ,通过更改单元格的 FocusPosition,可以控制编辑室光标的问题
- TextCellType tct = new TextCellType();
- tct.FocusPosition = EditorFocusCursorPosition.SelectAll;
- CurrencyCellType cct = new CurrencyCellType();
- cct.FocusPosition = EditorFocusCursorPosition.End;
- fpSpread1.Sheets[0].Cells[0, 0].CellType = tct;
- fpSpread1.Sheets[0].Cells[0, 1].CellType = cct;
复制代码 |