Excel for UWP/WinRT
Item プロパティ (XLSheet)

シート内の指定された位置にあるセルを取得します。必要な場合は、新しいセルを作成します。
構文
'宣言
 
Public ReadOnly Default Property Item( _
   ByVal rowIndex As System.Integer, _
   ByVal colIndex As System.Integer _
) As XLCell
public XLCell this[ 
   System.int rowIndex,
   System.int colIndex
]; {get;}

パラメータ

rowIndex
colIndex
解説

インデクサが呼び出されたときに指定されたセルが存在しない場合は、シートが拡張され、新しいセルが作成されて返されます。これにより、シートを簡単に作成し、セルを挿入できます。

特定のセルが定義されているかどうかを確認する場合は、代わりに GetCell メソッドを使用します。

一般に、シートを作成し、セルを挿入する場合は、インデクサの方が便利です。既存のシートをロードする場合は、GetCell メソッドの方が便利です。

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

XLSheet クラス
XLSheet メンバ

Send Feedback