MESCIUS SPREAD for ASP.NET 10.0J
AutoFilterMode 列挙体

FarPoint.Win.Spread.SheetView.AutoFilterModeプロパティのデータを提供します。
構文
'Declaration
 
Public Enum AutoFilterMode 
   Inherits System.Enum
public enum AutoFilterMode : System.Enum 
メンバ
メンバ説明
Enhanced自動フィルタを操作するためにメニューを表示します。
FilterBar自動フィルタを操作するためにフィルタバーを表示します。
FilterGadget自動フィルタを操作するためにフィルタガジェットを表示します。
次のサンプルコードは、AutoFilterMode列挙体を使用します。
protected void Page_Load(object sender, System.EventArgs e)
{
    if (this.IsPostBack) return;
    FpSpread1.Sheets[0].Cells[0, 0, 2, 2].Value = 3;
    FarPoint.Web.Spread.DynamicFilterItem dy = new FarPoint.Web.Spread.DynamicFilterItem(FarPoint.Web.Spread.Dyn    amicFilterType.AboveAverage);
    FarPoint.Web.Spread.IRowFilter rowFilter = new FarPoint.Web.Spread.HideRowFilter(FpSpread1.ActiveSheetView);    
    FarPoint.Web.Spread.FilterColumnDefinition fd = new FarPoint.Web.Spread.FilterColumnDefinition(1, FarPoint.W    eb.Spread.FilterListBehavior.Custom);
    fd.Filters.Add(dy);
    rowFilter.ColumnDefinitions.Add(fd);
    FpSpread1.ActiveSheetView.RowFilter = rowFilter;
    FpSpread1.ActiveSheetView.AutoFilterColumn(1, dy.DisplayName);
    FpSpread1.ActiveSheetView.AutoFilterMode = FarPoint.Web.Spread.AutoFilterMode.Enhanced;
}
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If IsPostBack Then
        Return
    End If
    FpSpread1.Sheets(0).Cells(0, 0, 2, 2).Value = 3
    Dim dy As New FarPoint.Web.Spread.DynamicFilterItem(FarPoint.Web.Spread.DynamicFilterType.AboveAverage)
    Dim rowFilter As New FarPoint.Web.Spread.HideRowFilter(FpSpread1.ActiveSheetView)
    Dim fd As New FarPoint.Web.Spread.FilterColumnDefinition(1, FarPoint.Web.Spread.FilterListBehavior.Custom)
    fd.Filters.Add(dy)
    rowFilter.ColumnDefinitions.Add(fd)
    FpSpread1.ActiveSheetView.RowFilter = rowFilter
    FpSpread1.ActiveSheetView.AutoFilterColumn(1, dy.DisplayName)
    FpSpread1.ActiveSheetView.AutoFilterMode = FarPoint.Web.Spread.AutoFilterMode.Enhanced
End Sub
継承階層

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.AutoFilterMode

参照

FarPoint.Web.Spread 名前空間

 

 


© MESCIUS inc. All rights reserved.