MESCIUS SPREAD for ASP.NET 10.0J
BackColor プロパティ (GroupInfo)

グループ情報の背景色を取得または設定します。
構文
'Declaration
 
Public Property BackColor As Color
public Color BackColor {get; set;}

プロパティ値

背景色を含む Color オブジェクト
次のサンプル コードは、グループの外観を返します。
FpSpread1.ActiveSheetView.AllowColumnMove = true;
FpSpread1.ActiveSheetView.AllowGroup = true;
FpSpread1.ActiveSheetView.GroupBarVisible = true;

FarPoint.Web.Spread.GroupInfo gi = new FarPoint.Web.Spread.GroupInfo();
gi.BackColor = Color.Yellow;
FpSpread1.ActiveSheetView.GroupInfos.Add(gi);

string msg = "The backcolor of the group is " + app.BackColor.ToString(); 
Response.Write("alert('" + msg + "')"); 

FpSpread1.ActiveSheetView.AllowColumnMove = True
FpSpread1.ActiveSheetView.AllowGroup = True
FpSpread1.ActiveSheetView.GroupBarVisible = True

Dim gi As New FarPoint.Web.Spread.GroupInfo
gi.BackColor = Color.Yellow
Dim app As New FarPoint.Web.Spread.Appearance
gi.GetAppearance(app)
FpSpread1.ActiveSheetView.GroupInfos.Add(gi)

Dim msg As String = "The backcolor of the group is " + app.BackColor.ToString()
Response.Write("alert('" & msg & "')")
参照

GroupInfo クラス
GroupInfo メンバ

 

 


© MESCIUS inc. All rights reserved.