回复 3楼dadado的帖子
2#是C#代码,VB.NET 写法如下:
- Dim row As FarPoint.Win.Spread.Row
- Dim size As Single
- row = FpSpread1.ActiveSheet.Rows(0)
- FpSpread1.ActiveSheet.Cells(0, 0).Text = "This text will be used to determine the height of the row."
- size = row.GetPreferredHeight()
- row.Height = size
复制代码 |