IronXL Features for C#.NET
IronXL.Excel is a .NET library providing developers with a fast and intuitive way to access, modify, generate Excel and other spreadsheet files in C#.
There is no use of Office Interop and IronXL.Excel works on .NET Core and Azure with no special dependencies or need to install MS Office.
IronXL is a leading .NET Core and .NET Framework Excel spreadsheet library for C# and VB.NET.
Compatibility
.NET Languages
- C# (Tutorial | API Reference)
- Read, edit and create spreadsheets in C# with Excel, MVC & ASP.NET
- VB.NET (Tutorial | API Reference)
- Read, edit and create spreadsheets in VB.NET with Excel, MVC & ASP.NET
- F# (API Reference)
- Read, edit and create spreadsheets in F# with Excel, MVC & ASP.NET
Platforms
- .NET 5, 6, 7, and 8 (Tutorial | API Reference), .NET Core 2, 3, and 5 (Tutorial | API Reference)
- IronXL is available for .NET 5, 6, 7, and 8.
- IronXL is also available for .NET Core 2, 3, and 5.
- The current .NET Core release supports Linux, Unix and macOS client operating systems as well as Mono and Xamarin.
- A future release will support Xamarin mobile environments.
- .NET Standard 2 (API Reference)
- IronXL is compatible with .NET Standard 2.0 and 2.1.
- .NET Framework 4x (API Reference)
- Read, edit and create spreadsheet with .NET Framework 4.5 and upwards.
App Types
- Console, Web, & Desktop (Tutorial | API Reference)
- Create apps for Console, Web, and Desktop utilizing IronXL.
OS
Create any application using IronXL on Windows, Linux, macOS, Docker, Azure, and AWS
- Microsoft Windows (Tutorial | API Reference)
- Linux (Debian, CestOS, Ubuntu) (Tutorial | API Reference)
- macOS (Windows, Linux, Azure) (Tutorial | API Reference)
- Docker (VPS, Webapps, Functions) (Tutorial | API Reference)
- Azure (Tutorial | API Reference)
- AWS (EC2, Lambda) (Tutorial | API Reference)
IDEs
- Microsoft Visual Studio (Tutorial | API Reference)
- Jetbrains ReSharper & Rider
Certification
- Microsoft Authenticode
- DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1
Workbooks
Create or Load Spreadsheets
Create How-To | Load How-To | Create Code Example | Load Code Example
- XLS
- Create and load .xls file format for Microsoft Excel versions 97-2003.
- XLSX
- Create and load .xlsx file format for Microsoft Excel versions 2007 and later.
- XLTX
- Load Excel template file in the format of .xltx
- XLSM
- Load Excel Macro-Enabled Workbook file in the format of .xlsm
- CSV
- Load Comma-Separated Values file in the format of .csv
- TSV
- Load Tab-Separated Values file in the format of .tsv
Save or Export Formats
- XLS (Code Example | API Reference)
- Edit, save, and export Microsoft Excel versions 97-2003 in the format of XLS.
- XLSX, XSLT, XLSM (Code Example | API Reference)
- Edit and save XLSX, XSLT, XLSM at ease. While exporting spreadsheet to XLSX format.
- CSV (Code Example | API Reference)
- Edit, save, and export CSV file format.
- TSV (Code Example | API Reference)
- Edit, save, and export TSV file format.
- JSON (Code Example | API Reference)
- Edit, save, and export JSON file format.
- XML (Code Example | API Reference)
- Edit, save, and export XML file format.
- HTML (Code Example | API Reference)
- Export spreadsheet as HTML file format. Convert workbook into in code HTML string. Options to show or hide properties of Excel when converted to HTML:
- Column header
- Hidden columns and rows
- Leading spaces as non-breaking
- Row numbers
- Binary (Code Example | API Reference)
- Convert spreadsheet to binary representation.
- Byte Array (Code Example | API Reference)
- Convert spreadsheet to byte array containing spreadsheet file content.
System.Data Objects
- DataSet or DataTable (How-To | Code Example | API Reference)
- Import and export as DataSet or DataTable
Edit Workbooks
- Metadata (How-To | Code Example | API Reference)
- Add, modify and retrieve granular meta-data such as:
- Author
- Comments
- Last printed date
- Keywords and Category
- Created and Modified date
- Subject and Title
- Retrieve granular meta-data such as:
- Application name
- Custom properties
- Company
- Manager
- Template
- Permissions & Passwords (How-To | Code Example | API Reference)
- Open, edit and save password protected spreadsheet.
- Encrypt Workbook with password.
- Create Worksheets (How-To | API Reference)
- Create a branch new sheet.
- Remove Worksheets (How-To | API Reference)
- Delete an entire sheet.
- Set Sheet Position (How-To | API Reference)
- Rearrange the position of sheets.
- Set Active Tab (How-To | API Reference)
- Set the default tab when opening the spreadsheet file in applications like Microsoft Excel.
Worksheets
Edit Formulas
- Works with Excel formulas (API Reference)
- Apply and modify formulas without the use of Interop
- Recalculation on sheet edit (API Reference)
- Trigger the recalculation of formulas the whole spreadsheet
Data Collection
- Range (API Reference)
- Select, edit, and calculate Range in each worksheets.
- Column (API Reference)
- Select, edit, and calculate Column in each worksheets.
- Row (API Reference)
- Select, edit, and calculate Row in each worksheets.
Create and Edit Charts
- Area, Bar, Column, Line, Pie, Scatter (How-To | Code Example | API Reference)
- Create Area, Bar, Column, Line, Pie, and Scatter chart at ease
- Edit chart configuration such as:
- Title
- Legend position
Edit Layout
- Freeze Panes (How-To | Code Example | API Reference)
- Create freeze pane of rows and columns allowing them to remain visible while scrolling. These column also called header column or row.
- Autosize Rows (How-To | Code Example | API Reference)
- Automatically adjusts the row size to accommodate the height of the content.
- Autosize Columns (How-To | Code Example | API Reference)
- Automatically adjusts the column size to accommodate the width of the content.
- Add Row (How-To | Code Example | API Reference)
- Creates and inserts a new row.
- Add Column (How-To | Code Example | API Reference)
- Creates and inserts a new column.
Edit Worksheets
- Copy Worksheets (How-To | Code Example | API Reference)
- Duplicate worksheets to keep the original one untouched.
- Protect with Password (How-To | Code Example | API Reference)
- Access and modify protected worksheet without requiring password.
- Apply password protection to each worksheet individually.
- Group & Ungroup (How-To | Code Example | API Reference)
- Grouping rows and columns together allows you to hide multiple rows and columns possible.
- Add Images (How-To | Code Example | API Reference)
- Insert images to worksheet.
- Remove Images (How-To | Code Example | API Reference)
- Remove images from worksheet.
- Extract Images (How-To | Code Example | API Reference)
- Extract images from worksheet.
Cell Ranges
Cell Range Functions
- Sort (How-To | Code Example | API Reference)
- Apply ascend or descend sorting to cell range including single column and row.
- Apply sorting based on any particular column in the selected range.
- Trim (How-To | API Reference)
- Removes leading and trailing empty cells from the selected range.
- Clear (How-To | API Reference)
- Clears the content of a selected cell.
- Copy (How-To | API Reference)
- Copies and pastes the content and styling of a selected cell to the same or different sheet.
- Find and Replace (API Reference)
- Set Hyperlinks (How-To | API Reference)
- Creates hyperlinks to website URLs, cells, and defined names in the same or different sheet. Also supports opening FTP, files, and email.
- Merge Cell Ranges (How-To | API Reference)
- Combines multiple adjacent cells into a single, larger cell.
- Unmerge Cells (How-To | API Reference)
- Splits the merged cell back into its original individual cells.
Style Cells:
- Font and Size (How-To | Code Example)
- Edit and apply styling to font decoration and size.
- Border and Alignment (How-To | Code Example | API Reference)
- Edit and apply styling to border decoration and text alignment.
- Background pattern (How-To | Code Example | API Reference)
- Edit and apply background styling without Office Interop.
- Conditional Formatting (How-To | Code Example | API Reference)
- Edit and apply conditional formatting to cell range.
Maths Functions:
- Average (API Reference)
- Calculate average of given range, row, or column.
- Sum (API Reference)
- Calculate total sum of given range, row, or column.
- Min (API Reference)
- Identify minimum number of given range, row, or column.
- Max (API Reference)
- Identify maximum number of given range, row, or column.
Set Cell Data Formats:
How-To | Code Example | API Reference
- Text, Number, Formula, Date, Currency, Scientific, Time, Boolean, Custom Formats