BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.Utils/Document/Excel/NPOI/SS/Util/CellRangeAddressBase.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
namespace Zephyr.Utils.NPOI.SS.Util
{
using System;
/**
* See OOO documentation: excelfileformat.pdf sec 2.5.14 - 'Cell Range Address'<p/>
*
* Common subclass of 8-bit and 16-bit versions
*
* @author Josh Micich
*/
public abstract class CellRangeAddressBase
{
// /** max 65536 rows in BIFF8 */
//private const int LAST_ROW_INDEX = 0x00FFFF;
// /** max 256 columns in BIFF8 */
//private const int LAST_COLUMN_INDEX = 0x00FF;
private int _firstRow;
private int _firstCol;
private int _lastRow;
private int _lastCol;
protected CellRangeAddressBase(int firstRow, int lastRow, int firstCol, int lastCol)
{
//if (!IsValid(firstRow, lastRow, firstCol, lastCol))
//{
// throw new ArgumentException("invalid cell range (" + firstRow + ", " + lastRow
// + ", " + firstCol + ", " + lastCol + ")");
//}
_firstRow = firstRow;
_lastRow = lastRow;
_firstCol = firstCol;
_lastCol = lastCol;
}
//private static bool IsValid(int firstRow, int lastRow, int firstColumn, int lastColumn)
//{
// if (lastRow < 0 || lastRow > LAST_ROW_INDEX)
// {
// return false;
// }
// if (firstRow < 0 || firstRow > LAST_ROW_INDEX)
// {
// return false;
// }
// if (lastColumn < 0 || lastColumn > LAST_COLUMN_INDEX)
// {
// return false;
// }
// if (firstColumn < 0 || firstColumn > LAST_COLUMN_INDEX)
// {
// return false;
// }
// return true;
//}
后面还有 121 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。