回复 3楼xjy2004的帖子
调整一下参数试试看。
如参考如下代码:
- axfpSpread1.AllowMultiBlocks = true;
- //开始默认无选择
- MessageBox.Show(axfpSpread1.SelectionCount.ToString());
- axfpSpread1.SetSelection(1, 1, axfpSpread1.MaxCols, axfpSpread1.MaxRows); //UI上实现选择
- axfpSpread1.AddSelection(1, 1, axfpSpread1.MaxCols, axfpSpread1.MaxRows);
- //选中了,个数为1
- MessageBox.Show(axfpSpread1.SelectionCount.ToString());
- //获得选择内容
- object row = null, col = null, row1 = null, col1 = null;
- axfpSpread1.GetSelection(0, ref col, ref row, ref col1, ref row1);
复制代码 |