Range.Item[Object, Object] プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した Range 範囲へのオフセットの範囲を表す オブジェクトを返します。
public:
property System::Object ^ Item[System::Object ^, System::Object ^] { System::Object ^ get(System::Object ^ RowIndex, System::Object ^ ColumnIndex); void set(System::Object ^ RowIndex, System::Object ^ ColumnIndex, System::Object ^ value); };
public object Item[object RowIndex, object ColumnIndex] { get; set; }
Public Property Item(RowIndex As Object, Optional ColumnIndex As Object) As Object
パラメーター
- RowIndex
- Object
必須 オブジェクト。 左から右に、次に上から下に数えて、アクセスするセルのインデックス番号を指定します。 Range.Item(1) は、範囲内の左上のセルを返します。Range.Item(2) は、左上のセルの右側にあるセルを返します。
- ColumnIndex
- Object
省略可能 なオブジェクト。 範囲の最初の列を 1 または "A" として、アクセスするセルの列番号を示す数字または列文字を指定します。
プロパティ値
注釈
RowIndex
引数と ColumnIndex
引数は相対オフセットです。 つまり、 を RowIndex
1 に指定すると、ワークシートの最初の行ではなく、範囲の最初の行のセルが返されます。