作成日: 2019/04/19 最終更新日: 2019/04/19
文書種別
使用方法
詳細
コマンドバーの背景を透過色にするには、CommandBar.BackColorプロパティの他、クライアント側でコマンドバーのDIVのスタイルも透過色に設定する必要がございます。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
------------------------
Webフォームクラス
------------------------
FpSpread1.ActiveSheetView.BackColor = System.Drawing.Color.Blue
FpSpread1.CommandBar.BackColor = System.Drawing.Color.Transparent
FpSpread1.CommandBar.Background = Nothing
FpSpread1.CommandBar.ButtonFaceColor = System.Drawing.Color.Transparent
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton
------------------------------------
クライアント側スクリプト
------------------------------------
<script type="text/javascript">
document.onreadystatechange = function () {
if (document.readyState == "complete") {
var bar = document.getElementById("FpSpread1_commandBar");
bar.style.backgroundColor = "transparent";
}
}
</script>
Webフォームクラス
------------------------
FpSpread1.ActiveSheetView.BackColor = System.Drawing.Color.Blue
FpSpread1.CommandBar.BackColor = System.Drawing.Color.Transparent
FpSpread1.CommandBar.Background = Nothing
FpSpread1.CommandBar.ButtonFaceColor = System.Drawing.Color.Transparent
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton
------------------------------------
クライアント側スクリプト
------------------------------------
<script type="text/javascript">
document.onreadystatechange = function () {
if (document.readyState == "complete") {
var bar = document.getElementById("FpSpread1_commandBar");
bar.style.backgroundColor = "transparent";
}
}
</script>
◎サンプルコード(C#)
-------------------------------
Webフォームクラス
-------------------------------
FpSpread1.ActiveSheetView.BackColor = System.Drawing.Color.Blue;
FpSpread1.CommandBar.BackColor = System.Drawing.Color.Transparent;
FpSpread1.CommandBar.Background = null;
FpSpread1.CommandBar.ButtonFaceColor = System.Drawing.Color.Transparent;
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton;
------------------------
クライアント側スクリプト
------------------------
※VBのサンプルコードと同様
Webフォームクラス
-------------------------------
FpSpread1.ActiveSheetView.BackColor = System.Drawing.Color.Blue;
FpSpread1.CommandBar.BackColor = System.Drawing.Color.Transparent;
FpSpread1.CommandBar.Background = null;
FpSpread1.CommandBar.ButtonFaceColor = System.Drawing.Color.Transparent;
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton;
------------------------
クライアント側スクリプト
------------------------
※VBのサンプルコードと同様
旧文書番号
83900