MESCIUS SPREAD for ASP.NET 10.0J
Height プロパティ (FilterBar)

フィルタバーの高さを取得または設定します。
構文
'Declaration
 
Public Property Height As Integer
public int Height {get; set;}
次のサンプルコードは、フィルタバーの高さを設定します。
protected void Page_Load(object sender, System.EventArgs e)
{
    if (this.IsPostBack) return;
    //Basic Filter Bar
    FarPoint.Web.Spread.SheetView sheetView = FpSpread1.ActiveSheetView;
    sheetView.AutoFilterMode = FarPoint.Web.Spread.AutoFilterMode.FilterBar;
    sheetView.FilterBar.Height = 30;
    sheetView.FilterBar.DefaultHeaderStyle.Border = new FarPoint.Web.Spread.Border(Color.Red);
    sheetView.FilterBar.DefaultHeaderStyle.BackColor = Color.Yellow;  
}
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If IsPostBack Then
        Return
    End If
    'Basic Filter Bar
    Dim sheetView As FarPoint.Web.Spread.SheetView = FpSpread1.ActiveSheetView
    sheetView.AutoFilterMode = FarPoint.Web.Spread.AutoFilterMode.FilterBar
    sheetView.FilterBar.Height = 30
    sheetView.FilterBar.DefaultHeaderStyle.Border = New FarPoint.Web.Spread.Border(Drawing.Color.Red)
    sheetView.FilterBar.DefaultHeaderStyle.BackColor = Drawing.Color.Yellow
End Sub
参照

FilterBar クラス
FilterBar メンバ

 

 


© MESCIUS inc. All rights reserved.