fpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2);
FarPoint.Win.Spread.Model.CellRange cr;
cr = fpSpread1.ActiveSheet.GetSpanCell(1, 1);
label1.Text = "The span covers cells " + cr.Row + ", " + cr.Column + ", " + cr.RowCount + ", " + cr.ColumnCount;
若用你的代码。获取单元格改下,我要获得的是row=1,col=1的呢,从控件上看cell(1,1)是被合并的,若我代码上定位cell(1,1),我从cell(1,2)左移一个单位定位cell(1,1),但通过GetSpanCell返回的却是不是合并的单元格,只是视觉上被合并单元格覆盖在下面。 |