FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > Row クラス : GetPreferredHeight メソッド |
次のサンプルコードは、最初のセルのテキストに基づいて行の高さを決定します。
FarPoint.Win.Spread.Row row; float size; 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;
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