diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-04-07 09:26:52 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-04-07 09:26:52 +0300 |
commit | 3f4d7f45b7f73ec0da32cc0a5d071b7a3a1e9aa1 (patch) | |
tree | b4b4b28a4828b4c4f55901a5b81e08778ded7b20 /RhSolutions.ExcelExtensions/Rows.cs | |
parent | 6acba1a542d98f50e9bdaa986d81024623aeeffd (diff) |
Delete Excel.Extensions
Diffstat (limited to 'RhSolutions.ExcelExtensions/Rows.cs')
-rw-r--r-- | RhSolutions.ExcelExtensions/Rows.cs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/RhSolutions.ExcelExtensions/Rows.cs b/RhSolutions.ExcelExtensions/Rows.cs deleted file mode 100644 index c6d4c01..0000000 --- a/RhSolutions.ExcelExtensions/Rows.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Collections; - -namespace RhSolutions.ExcelExtensions; - -public class Rows : IEnumerable<Row> -{ - public Table ParentTable { get; } - public int Length - { - get => _range.Rows.Count; - } - private Row[] _rows; - private Range _range; - - public Rows(Table parentTable) - { - ParentTable = parentTable; - _range = parentTable.Range; - _rows = new Row[Length]; - } - - public Row this[int index] - { - get - { - if (_rows[index] == null) - { - _rows[index] = new Row(_range.Rows[index + 1], ParentTable); - return _rows[index]; - } - else - { - return _rows[index]; - } - } - } - - public IEnumerator<Row> GetEnumerator() - { - return new RowsEnumerator(this); - } - - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); -} |