作成日: 2019/09/11 最終更新日: 2019/09/11
文書種別
使用方法
詳細
コマンドボタン型セルにおいてボタンの高さをセルの高さに合わせて変更するには、ButtonCellTypeクラスのCssClassプロパティを使用して、明示的に高さを指定する必要がございます。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
------------------------
Webフォームクラス
------------------------
Dim btnc As FarPoint.Web.Spread.ButtonCellType = New FarPoint.Web.Spread.ButtonCellType
・・・
btnc.CssClass = "test"
FpSpread1.ActiveSheetView.Rows.Default.Height = 50
・・・
------------------------------------
クライアント側
------------------------------------
<style type="text/css">
.test {
height: 50px;
}
</style>
Webフォームクラス
------------------------
Dim btnc As FarPoint.Web.Spread.ButtonCellType = New FarPoint.Web.Spread.ButtonCellType
・・・
btnc.CssClass = "test"
FpSpread1.ActiveSheetView.Rows.Default.Height = 50
・・・
------------------------------------
クライアント側
------------------------------------
<style type="text/css">
.test {
height: 50px;
}
</style>
◎サンプルコード(C#)
------------------------
Webフォームクラス
------------------------
var btnc = new FarPoint.Web.Spread.ButtonCellType();
・・・
btnc.CssClass = "test";
FpSpread1.ActiveSheetView.Rows.Default.Height = 50;
・・・
------------------------------------
クライアント側
------------------------------------
<style type="text/css">
.test {
height: 50px;
}
</style>
Webフォームクラス
------------------------
var btnc = new FarPoint.Web.Spread.ButtonCellType();
・・・
btnc.CssClass = "test";
FpSpread1.ActiveSheetView.Rows.Default.Height = 50;
・・・
------------------------------------
クライアント側
------------------------------------
<style type="text/css">
.test {
height: 50px;
}
</style>
旧文書番号
84475