The indexer of ExcelRange has a strange behaviour that leads to errors.
1. If your ExcelRange X addresses cells "F6:F10" then, when selecting X[1,1] you get cell "A1".
2. The example above also changes the range X. After executing the indexer, X points to "A1" also.
An indexer with expected behaviour does not change X but returns a new range relative to X. In our example, the result would point to cell "F6".
At least, the documentation of the indexer should mention that it actually sets a new absolute worksheet-address.
Comments: This seems like a duplicate of https://epplus.codeplex.com/workitem/15309 And I agree that "An indexer with expected behaviour does not change X but returns a new range relative to X."
1. If your ExcelRange X addresses cells "F6:F10" then, when selecting X[1,1] you get cell "A1".
2. The example above also changes the range X. After executing the indexer, X points to "A1" also.
An indexer with expected behaviour does not change X but returns a new range relative to X. In our example, the result would point to cell "F6".
At least, the documentation of the indexer should mention that it actually sets a new absolute worksheet-address.
Comments: This seems like a duplicate of https://epplus.codeplex.com/workitem/15309 And I agree that "An indexer with expected behaviour does not change X but returns a new range relative to X."