Dim action As Action = New FarPoint.Win.Spread.UndoRedo.CellEditUndoAction(fpSpread1_Sheet1, 0, 0, "hello", False)
action.PerformAction(fpSpread1_Sheet1.ContainingViews(0))
action = New CellDragFillUndoAction(fpSpread1.ActiveSheet, 0, 0, 1, 1, 2, _
FillDirection.Right, True)
action.PerformAction(fpSpread1_Sheet1.ContainingViews(0))
我明白你的意思了 请参考如上实现 直接使用action下的PerformAction方法
其中参数为SpreadView类型 填sheet下的ContainingViews(0)就可以了 |