PowerTools SPREAD for ASP.NET 8.0J
Appearance コンストラクタ(Appearance)

新しいオブジェクトの作成に使用するAppearanceオブジェクト
指定したAppearanceオブジェクトに基づいてAppearanceオブジェクトを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal cellAppearance As Appearance _
)
public Appearance( 
   Appearance cellAppearance
)

パラメータ

cellAppearance
新しいオブジェクトの作成に使用するAppearanceオブジェクト
private void ChangeCellColor(FarPoint.Web.Spread.FpSpread s, FarPoint.Web.Spread.Cell c, FarPoint.Web.Spread.Appearance a)
{
s.ActiveSheetView.Cells[c.Row.Index, c.Column.Index].BackColor = a.BackColor;
}

FarPoint.Web.Spread.Appearance appr = new FarPoint.Web.Spread.Appearance();
appr.BackColor = Color.Red;
FarPoint.Web.Spread.Appearance appr1 = new FarPoint.Web.Spread.Appearance(appr);
FarPoint.Web.Spread.Cell c;
c = FpSpread1.ActiveSheetView.Cells[1, 1];
ChangeCellColor(FpSpread1, c, appr1);
Private Sub ChangeCellColor(ByVal s As FarPoint.Web.Spread.FpSpread, ByVal c As FarPoint.Web.Spread.Cell, ByVal a As FarPoint.Web.Spread.Appearance)
      s.ActiveSheetView.Cells(c.Row.Index, c.Column.Index).BackColor = a.BackColor
End Sub

Dim appr As New FarPoint.Web.Spread.Appearance
appr.BackColor = Color.Red
Dim appr1 As New FarPoint.Web.Spread.Appearance(appr)
Dim c As FarPoint.Web.Spread.Cell
c = FpSpread1.ActiveSheetView.Cells(1, 1)
ChangeCellColor(FpSpread1, c, appr)
参照

Appearance クラス
Appearance メンバ
オーバーロード一覧

 

 


© 2003-2015, GrapeCity inc. All rights reserved.