MESCIUS SPREAD for Windows Forms 15.0J
FilterBarHeaderVerticalGridLine プロパティ
使用例 

フィルタバーの垂直グリッド線を取得または設定します。
構文
'宣言
 
Public Property FilterBarHeaderVerticalGridLine As GridLine
public GridLine FilterBarHeaderVerticalGridLine {get; set;}
例外
例外解説
System.ArgumentNullException 値が指定されていません(指定された値がNull)。
使用例
次のサンプルコードは、FilterBarHeaderVerticalGridLineプロパティを設定します。
fpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off;
FarPoint.Win.Spread.NamedStyle backstyle = new FarPoint.Win.Spread.NamedStyle("BlueBack", "FilterBarEnhanced");
backstyle.BackColor = Color.Blue;
fpSpread1.NamedStyles.Add(backstyle);

FarPoint.Win.Spread.SheetView sheetView = fpSpread1.ActiveSheet;
sheetView.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;
sheetView.FilterBarHeaderVerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Raised, Color.Red, Color.Green, Color.Pink, 10);
sheetView.FilterBarHeaderHorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Lowered, Color.Orange, Color.Green, Color.Pink, 10);
sheetView.FilterBarHeaderStyle = backstyle;
FpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off
Dim backstyle As New FarPoint.Win.Spread.NamedStyle("BlueBack", "FilterBarEnhanced")
backstyle.BackColor = Color.Blue
FpSpread1.NamedStyles.Add(backstyle)

Dim sheetview As FarPoint.Win.Spread.SheetView = FpSpread1.ActiveSheet
sheetview.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar
sheetview.FilterBarHeaderVerticalGridLine = New FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Raised, Color.Red, Color.Green, Color.Pink, 10)
sheetview.FilterBarHeaderHorizontalGridLine = New FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Lowered, Color.Orange, Color.Green, Color.Pink, 10)
sheetview.FilterBarHeaderStyle = backstyle
参照

SheetView クラス
SheetView メンバ

 

 


© MESCIUS inc. All rights reserved.