Excel for WinRT
Add(Int32,Int32,Int32,Int32) Method


Index of the top row in the cell range.
Index of the left column in the cell range.
Number of rows in the cell range.
Number of columns in the cell range.
Creates an XLCellRange object and appends it to the collection.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal rowIndex As System.Integer, _
   ByVal colIndex As System.Integer, _
   ByVal rowCount As System.Integer, _
   ByVal colCount As System.Integer _
) As XLCellRange
'Usage
 
Dim instance As XLCellRangeCollection
Dim rowIndex As System.Integer
Dim colIndex As System.Integer
Dim rowCount As System.Integer
Dim colCount As System.Integer
Dim value As XLCellRange
 
value = instance.Add(rowIndex, colIndex, rowCount, colCount)
public XLCellRange Add( 
   System.int rowIndex,
   System.int colIndex,
   System.int rowCount,
   System.int colCount
)

Parameters

rowIndex
Index of the top row in the cell range.
colIndex
Index of the left column in the cell range.
rowCount
Number of rows in the cell range.
colCount
Number of columns in the cell range.

Return Value

A reference to the object if it was successfully added to the collection, or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection).
See Also

Reference

XLCellRangeCollection Class
XLCellRangeCollection Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback