MESCIUS SPREAD for ASP.NET 10.0J
AddColumn(Int32) メソッド

列インデックス
フィルタ列定義を含むFilterColumnDefinitionオブジェクト
構文
'Declaration
 
Public Overloads Sub AddColumn( _
   ByVal viewColumnIndex As Integer _
) 
public void AddColumn( 
   int viewColumnIndex
)

パラメータ

viewColumnIndex
列インデックス
次のサンプルコードは、行フィルタを設定します。
FarPoint.Web.Spread.NamedStyle instyle = new FarPoint.Web.Spread.NamedStyle();
FarPoint.Web.Spread.NamedStyle outstyle = new FarPoint.Web.Spread.NamedStyle();
instyle.BackColor = Color.Yellow;
outstyle.BackColor = Color.Aquamarine;
FarPoint.Web.Spread.StyleRowFilter sf = new FarPoint.Web.Spread.StyleRowFilter(FpSpread1.Sheets[0], instyle, outstyle);
sf.AddColumn(1);
FpSpread1.Sheets[0].RowFilter = sf;
Dim instyle As New FarPoint.Web.Spread.NamedStyle()
Dim outstyle As New FarPoint.Web.Spread.NamedStyle()
instyle.BackColor = Color.Yellow
outstyle.BackColor = Color.Aquamarine
Dim sf As New FarPoint.Web.Spread.StyleRowFilter(FpSpread1.Sheets(0), instyle, outstyle)
sf.AddColumn(1)
FpSpread1.Sheets(0).RowFilter = sf
参照

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

 

 


© MESCIUS inc. All rights reserved.