SpaceClaim.AddInLibrary.ExcelWorksheet.GetRangeStrings C# (CSharp) Method

GetRangeStrings() public method

public GetRangeStrings ( ) : ].string[
return ].string[
        public string[,] GetRangeStrings()
        {
            Object[,] objects = GetRangeObjects();

            //Determine the dimensions of the array.
            long iRows;
            long iCols;
            iRows = objects.GetUpperBound(0);
            iCols = objects.GetUpperBound(1);

            var strings = new string[iRows, iCols];
            for (long rowCounter = 1; rowCounter <= iRows; rowCounter++) {
                for (long colCounter = 1; colCounter <= iCols; colCounter++) {
                    strings[rowCounter, colCounter] = objects[rowCounter, colCounter].ToString();
                }
            }

            return strings;
        }