单元格在编辑状态时,按下PageDown或者PageUp
你用下面的代码测试一下试试。
- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Me.FpSpread1.Reset()
- Me.FpSpread1.EditModePermanent = True
- Me.FpSpread1.ActiveSheet.ColumnCount = 1
- Dim cellType As New FarPoint.Win.Spread.CellType.TextCellType
- cellType.Multiline = True
- Me.FpSpread1.ActiveSheet.Columns(0).CellType = cellType
- End Sub
复制代码 |