MESCIUS SPREAD for Windows Forms 17.0J
GetColumnFooterCellRectangle メソッド

ビューポート列のインデックス
セルの行インデックス
セルの列インデックス
列フッタのセルの矩形を取得します。
構文
'Declaration
 
Public Function GetColumnFooterCellRectangle( _
   ByVal columnViewportIndex As Integer, _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Rectangle
public Rectangle GetColumnFooterCellRectangle( 
   int columnViewportIndex,
   int row,
   int column
)

パラメータ

columnViewportIndex
ビューポート列のインデックス
row
セルの行インデックス
column
セルの列インデックス
次のサンプルコードは、GetColumnFooterCellRectangleメソッドを使用します。
fpSpread1.Sheets[0].RowCount = 10;
fpSpread1.Sheets[0].ColumnCount = 15;
// Show the column footer.
fpSpread1.Sheets[0].ColumnFooter.Visible = true;
fpSpread1.Sheets[0].ColumnFooter.RowCount = 2;
fpSpread1.Sheets[0].ColumnFooter.DefaultStyle.ForeColor = Color.Purple;
fpSpread1.Sheets[0].ColumnFooter.Columns[12].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 12].RowSpan = 2;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 0].Value = "test";

private void button1_Click(object sender, EventArgs e)
{
    FarPoint.Win.Spread.SpreadView sv;    
    sv = fpSpread1.GetRootWorkbook();
    listBox1.Items.Add(sv.GetColumnFooterCellRectangle(0, 0, 0));
}
fpSpread1.Sheets(0).RowCount = 10
fpSpread1.Sheets(0).ColumnCount = 15
' Show the column footer.
fpSpread1.Sheets(0).ColumnFooter.Visible = True
fpSpread1.Sheets(0).ColumnFooter.RowCount = 2
fpSpread1.Sheets(0).ColumnFooter.DefaultStyle.ForeColor = Color.Purple
fpSpread1.Sheets(0).ColumnFooter.Columns(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left
fpSpread1.Sheets(0).ColumnFooter.Cells(0, 12).RowSpan = 2
fpSpread1.Sheets(0).ColumnFooter.Cells(0, 0).Value = "test"

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim sv As FarPoint.Win.Spread.SpreadView
sv = fpSpread1.GetRootWorkbook()
ListBox1.Items.Add(sv.GetColumnFooterCellRectangle(0, 0, 0))
End Sub
参照

SpreadView クラス
SpreadView メンバ

 

 


© MESCIUS inc. All rights reserved.