GrapeCity SPREAD for Windows Forms 11.0J
GetViewportBottomRow(Int32,Int32) メソッド


シートインデックス
ビューポート行インデックス
指定したシートの指定したビューポートの最後行の後の行を取得します。
構文
'Declaration
 
Public Overloads Function GetViewportBottomRow( _
   ByVal sheetIndex As Integer, _
   ByVal rowViewportIndex As Integer _
) As Integer
'使用法
 
Dim instance As SpreadView
Dim sheetIndex As Integer
Dim rowViewportIndex As Integer
Dim value As Integer
 
value = instance.GetViewportBottomRow(sheetIndex, rowViewportIndex)
public int GetViewportBottomRow( 
   int sheetIndex,
   int rowViewportIndex
)

パラメータ

sheetIndex
シートインデックス
rowViewportIndex
ビューポート行インデックス

戻り値の型

指定したビューポート行の一番下のセル行のインデックスを表す Integer
例外
例外説明
System.ArgumentOutOfRangeException指定されたシートインデックスが有効ではありません。有効な値の範囲は、ゼロからシートの数までです。
解説

シートインデックスは0から始まります。つまり、最初のシートのインデックスは0になります。

ビューポート行のインデックスは0から始まります。つまり、最初(一番上)のビューポート行のインデックスは0になります。

次のサンプルコードは、GetViewportBottomRowメソッドを使用します。
FarPoint.Win.Spread.SpreadView sv;
int i;
sv = fpSpread1.GetRootWorkbook();
sv.AddViewport(0, 0);
i = sv.GetViewportBottomRow(0, 0);
MessageBox.Show("The bottom row of the viewport is " + i.ToString());
Dim sv As FarPoint.Win.Spread.SpreadView
Dim i As Integer
sv = FpSpread1.GetRootWorkbook()
sv.AddViewport(0, 0)
i = sv.GetViewportBottomRow(0, 0)
MessageBox.Show("The bottom row of the viewport is " & i.ToString())
参照

SpreadView クラス
SpreadView メンバ
オーバーロード一覧

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.