1.显示比例
类似Excel文件中,按住ctrl,同事滚动鼠标可以更改显示比例。
sheet1.SetZoom(1, 2);
该方法摘要:
Sets the zoom magnication for the sheet. The zoom is expressed as a fraction.
For example to express a zoom of 75% use 3 for the numerator and 4 for the denominator.
两个参数均为int型,范围(1~65535)
SetZoom(a,b)即放大(缩小)原来的a/b倍。
2.设置密码
style.IsLocked = true;//锁定
sheet1.ProtectSheet("123");//设置密码