PowerTools SPREAD for Windows Forms 8.0J
AddViewport(Int32,Int32,Int32) メソッド


ビューポートを追加するシートのインデックス
ビューポート行インデックス
ビューポート列インデックス
ビューポートの行または列を追加します。
構文
'Declaration
 
Public Overloads Sub AddViewport( _
   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.AddViewport(sheetIndex, rowViewportIndex, columnViewportIndex)
public void AddViewport( 
   int sheetIndex,
   int rowViewportIndex,
   int columnViewportIndex
)

パラメータ

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

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

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

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

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

参照

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

 

 


© 2004-2015, GrapeCity inc. All rights reserved.