回复 0楼iceman的帖子
测试代码如下:
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Me.FpSpread1.ActiveSheet.ColumnHeaderAutoText = FarPoint.Win.Spread.HeaderAutoText.Blank
- Me.FpSpread1.ActiveSheet.ColumnHeader.Cells(0, 1).Text = "11"
- Me.FpSpread1.ClipboardOptions = FarPoint.Win.Spread.ClipboardOptions.NoHeaders
- End Sub
- Dim colIndex As Integer = 0
- Dim colLabel As String = ""
- Private Sub FpSpread1_ClipboardChanging(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FpSpread1.ClipboardChanging
- colLabel = Me.FpSpread1.ActiveSheet.ActiveColumn.Label
- colIndex = Me.FpSpread1.ActiveSheet.ActiveColumnIndex
- End Sub
- Private Sub FpSpread1_ClipboardPasting(ByVal sender As System.Object, ByVal e As FarPoint.Win.Spread.ClipboardPastingEventArgs) Handles FpSpread1.ClipboardPasting
- Me.FpSpread1.ActiveSheet.ActiveColumn.Label = colLabel
- End Sub
复制代码 |