Beispiel #1
0
 /// <summary>
 /// Creates a new cells enumerator for the specified sheet area with the specified search order for the specified search range.
 /// </summary>
 /// <param name="worksheet">The sheet.</param>
 /// <param name="sheetArea">The sheet area.</param>
 /// <param name="searchOrder">The search order for this enumerator.</param>
 /// <param name="rowStart">The starting row to enumerate.</param>
 /// <param name="columnStart">The starting column to enumerate.</param>
 /// <param name="rowEnd">The ending row to enumerate.</param>
 /// <param name="columnEnd">The ending column to enumerate.</param>
 public CellsEnumerator(Worksheet worksheet, Dt.Cells.Data.SheetArea sheetArea, Dt.Cells.Data.SearchOrder searchOrder, int rowStart, int columnStart, int rowEnd, int columnEnd)
 {
     this.sheetArea       = Dt.Cells.Data.SheetArea.Cells;
     this.rowStart        = -1;
     this.rowEnd          = -1;
     this.actualEndRow    = -1;
     this.columnStart     = -1;
     this.columnEnd       = -1;
     this.actualEndColumn = -1;
     this.currentColumn   = -1;
     this.currentRow      = -1;
     this.options         = EnumeratorOption.HasStyle | EnumeratorOption.HasValue;
     if (worksheet == null)
     {
         throw new ArgumentOutOfRangeException("sheet");
     }
     this.options     = EnumeratorOption.HasStyle | EnumeratorOption.HasValue;
     this.worksheet   = worksheet;
     this.sheetArea   = sheetArea;
     this.searchOrder = searchOrder;
     this.rowStart    = rowStart;
     this.columnStart = columnStart;
     this.rowEnd      = rowEnd;
     this.columnEnd   = columnEnd;
     this.Init();
     this.block = this.worksheet.GetStorage(this.sheetArea);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new cells enumerator for the specified sheet area with the specified search order.
 /// </summary>
 /// <param name="worksheet">The sheet.</param>
 /// <param name="sheetArea">The sheet area.</param>
 /// <param name="searchOrder">The search order for this enumerator.</param>
 public CellsEnumerator(Worksheet worksheet, Dt.Cells.Data.SheetArea sheetArea, Dt.Cells.Data.SearchOrder searchOrder) : this(worksheet, sheetArea, searchOrder, -1, -1, -1, -1)
 {
 }