- function changeCompleted(event) {
- var ss = document.getElementById("FpSpread1");
- //ss.CallBack("SetRowHeight." + event.height);
- //alert("The row has been resized." + event.height);
- var rg = ss.GetSelectedRange();
- var height = event.height;
- if (height < 20) {
- height = 20
- }
- //alert("selected " + rg.type + ", " + rg.row + ", " + rg.col + ", " + rg.rowCount + ", " + rg.colCount);
- for (var i = rg.row; i < rg.row + rg.rowCount; i++) {
- ss.Rows(i).SetHeight(height);
- }
- }
复制代码
SetHeight 是个方法Demo里写错了。
最小行高可以在事件里处理。如果您说的是可以调整的最小行高,那个是和整行字体大小相关的。需要把字体设置小了,行高才能调小
FpSpread1.ActiveSheetView.Rows[0].Font.Size = new FontUnit(4); |