MESCIUS SPREAD for Windows Forms 17.0J
ListBehavior プロパティ (FilterColumnDefinition)

リストの動作を取得します。
構文
'Declaration
 
Public ReadOnly Property ListBehavior As FilterListBehavior
public FilterListBehavior ListBehavior {get;}

プロパティ値

リストの動作を決定するFilterListBehavior設定
次のサンプルコードは、フィルタリングに使用するリストの動作を返します(Northwind.mdbのEmployeeテーブルに連結しています)。
FarPoint.Win.Spread.NamedStyle instyle = new FarPoint.Win.Spread.NamedStyle();
FarPoint.Win.Spread.NamedStyleim outstyle = new FarPoint.Win.Spread.NamedStyle();
instyle.BackColor = Color.Yellow;
outstyle.BackColor = Color.Aquamarine;
FarPoint.Win.Spread.FilterColumnDefinition fcd = new FarPoint.Win.Spread.FilterColumnDefinition(1, FarPoint.Win.Spread.FilterListBehavior.SortByMostOccurrences
|  
FarPoint.Win.Spread.FilterListBehavior.Default);
FarPoint.Win.Spread.FilterColumnDefinition fcd1 = new FarPoint.Win.Spread.FilterColumnDefinition(2);
FarPoint.Win.Spread.FilterColumnDefinition fcd2 = new FarPoint.Win.Spread.FilterColumnDefinition();
FarPoint.Win.Spread.StyleRowFilter sf = new FarPoint.Win.Spread.StyleRowFilter(fpSpread1.ActiveSheet, instyle, outstyle);
sf.AddColumn(fcd);
sf.AddColumn(fcd1);
sf.AddColumn(fcd2);
fpSpread1.ActiveSheet.RowFilter = sf;
FarPoint.Win.Spread.FilterListBehavior lb;
lb = fcd.ListBehavior;
textBox1.Text = lb.ToString();
Dim instyle As New FarPoint.Win.Spread.NamedStyle
Dim outstyle As New FarPoint.Win.Spread.NamedStyle
instyle.BackColor = Color.Yellow
outstyle.BackColor = Color.Aquamarine
Dim fcd As New FarPoint.Win.Spread.FilterColumnDefinition(1, FarPoint.Win.Spread.FilterListBehavior.SortByMostOccurrences
Or FarPoint.Win.Spread.FilterListBehavior.Default)
Dim fcd1 As New FarPoint.Win.Spread.FilterColumnDefinition(2)
Dim fcd2 As New FarPoint.Win.Spread.FilterColumnDefinition

Dim sf As New FarPoint.Win.Spread.StyleRowFilter(fpSpread1.ActiveSheet, instyle, outstyle)
sf.AddColumn(fcd)
sf.AddColumn(fcd1)
sf.AddColumn(fcd2)
fpSpread1.ActiveSheet.RowFilter = sf

Dim lb As FarPoint.Win.Spread.FilterListBehavior
lb = fcd.ListBehavior
TextBox1.Text = lb.ToString
参照

FilterColumnDefinition クラス
FilterColumnDefinition メンバ
FilterListBehavior 列挙体

開発者ガイド

フィルタ項目リストのカスタマイズ

 

 


© MESCIUS inc. All rights reserved.