Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ISheet.Cells collection to return a cell range #1448

Open
tonyqus opened this issue Nov 23, 2024 · 2 comments
Open

Implement ISheet.Cells collection to return a cell range #1448

tonyqus opened this issue Nov 23, 2024 · 2 comments

Comments

@tonyqus
Copy link
Member

tonyqus commented Nov 23, 2024

In EPPlus, it implements a string indexer for cell range selection

worksheet.Cells["B1"].Value = "This is cell B1"; // Sets the value of Cell B1
worksheet.Cells[1, 2].Value = "This is cell B1"; // Also sets the value of Cell B1

worksheet.Cells["A1:B3,D1:E57"].Style.NumberFormat.Format = "#,##0"; //Sets the number format for a range containing two addresses.
worksheet.Cells["A:B"].Style.Font.Bold = true; //Sets font-bold to true for column A & B

Reference

https://github.com/EPPlusSoftware/EPPlus/wiki/Addressing-a-worksheet

@tonyqus
Copy link
Member Author

tonyqus commented Nov 24, 2024

#257

@tonyqus tonyqus added the api label Nov 25, 2024
@tonyqus
Copy link
Member Author

tonyqus commented Nov 28, 2024

ClosedXML also has a similar feature
https://github.com/closedxml/closedxml/wiki/Selecting-Cells-and-Ranges

@tonyqus tonyqus self-assigned this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant