GrapeCity SPREAD for Windows Forms 12.0J
RemoveViewport(Int32,Int32,Int32) メソッド


ナビゲーションツールとビュー
シートインデックス
ビューポート行インデックス
ビューポート列インデックス
ビューポートの行または列を削除します。
構文
public void RemoveViewport( 
   int sheetIndex,
   int rowViewportIndex,
   int columnViewportIndex
)
'Declaration
 
Public Overloads Sub RemoveViewport( _
   ByVal sheetIndex As Integer, _
   ByVal rowViewportIndex As Integer, _
   ByVal columnViewportIndex As Integer _
) 
 
'使用法
 
Dim instance As SpreadView
Dim sheetIndex As Integer
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
 
instance.RemoveViewport(sheetIndex, rowViewportIndex, columnViewportIndex)

パラメータ

sheetIndex
シートインデックス
rowViewportIndex
ビューポート行インデックス
columnViewportIndex
ビューポート列インデックス
例外
例外説明
System.ArgumentOutOfRangeException 指定されたシートインデックスが有効ではありません。有効な値の範囲は、ゼロからシートの数までです。
解説

ビューポート列とビューポート行のインデックスは0から始まるので、最初(一番左)のビューポート列と最初(一番上)のビューポート行のインデックスはどちらも0になります。

ビューポート行またはビューポート列は全体的に削除する必要があります。個別にビューポートを削除することはできません。

両方のインデックスを使用すると、ビューポート行とビューポート列が同時に削除されます。

その方向のビューポートのセットを削除しない場合は、インデックスに-1を使用します。たとえばRemoveViewport(0, -1, 3)とすると、ビューポート列(4番目のビューポート列)が削除されますが、ビューポート行は削除されません。

次のサンプルコードは、RemoveViewportメソッドを使用します。
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.RemoveViewport(0, 0,0)
Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
sv.RemoveViewport(0, 0, 0)
参照

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

 

 


Copyright © 2004 GrapeCity inc.