FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス : GetPreferredPrintRowHeight メソッド |
オーバーロード | 説明 |
---|---|
GetPreferredPrintRowHeight | このシートの指定した行にある最も高さのあるセル(テキスト内容に基づく)の高さ(ピクセル単位)を取得します。 |
private void GetPrintHeight(Graphics g, float pwidth, FarPoint.Win.Spread.SheetView sheet) { sheet = fpSpread1.ActiveSheet; pwidth = sheet.GetPreferredPrintRowHeight(g, 0); } private void button1_Click(object sender, System.EventArgs e) { Graphics g; float pw = 0; g = fpSpread1.CreateGraphics(); GetPrintHeight(g, pw, fpSpread1.ActiveSheet); MessageBox.Show(pw.ToString()); }
Private Sub GetPrintHeight(ByVal g As Graphics, ByVal pwidth As Single, ByVal sheet As FarPoint.Win.Spread.SheetView) sheet = FpSpread1.ActiveSheet pwidth = sheet.GetPreferredPrintRowHeight(g, 0) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim g As Graphics Dim pw As Single g = FpSpread1.CreateGraphics() GetPrintHeight(g, pw, FpSpread1.ActiveSheet) MessageBox.Show(sngl.ToString()) End Sub