MESCIUS SPREAD for Windows Forms 17.0J
DefaultStyle プロパティ (ColumnFooter)

列フッタ内のセルのデフォルトスタイル情報を取得または設定します。
構文
'Declaration
 
Public Property DefaultStyle As StyleInfo
public StyleInfo DefaultStyle {get; set;}
次のサンプルコードは、列フッタを作成します。
fpSpread1.Sheets[0].RowCount = 10;
fpSpread1.Sheets[0].ColumnCount = 15;
// Show the footer.
fpSpread1.Sheets[0].ColumnFooter.Visible = true;
fpSpread1.Sheets[0].ColumnFooter.RowCount = 2;

FarPoint.Win.Spread.NamedStyle nstyleheaders = new FarPoint.Win.Spread.NamedStyle("test");
nstyleheaders.BackColor = Color.Red;
fpSpread1.NamedStyles.Add(nstyleheaders);
fpSpread1.Sheets[0].ColumnFooter.DefaultStyle  = nstyleheaders;
fpSpread1.Sheets[0].ColumnFooter.DefaultStyleName  = "test";
fpSpread1.Sheets(0).RowCount = 10
fpSpread1.Sheets(0).ColumnCount = 15
' Show the footer.
fpSpread1.Sheets(0).ColumnFooter.Visible = True
fpSpread1.Sheets(0).ColumnFooter.RowCount = 2

Dim nstyleheaders As New FarPoint.Win.Spread.NamedStyle("test")
nstyleheaders.BackColor = Color.Red
fpSpread1.NamedStyles.Add(nstyleheaders)
fpSpread1.Sheets(0).ColumnFooter.DefaultStyle = nstyleheaders
fpSpread1.Sheets(0).ColumnFooter.DefaultStyleName  = "test"
参照

ColumnFooter クラス
ColumnFooter メンバ

 

 


© MESCIUS inc. All rights reserved.