Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
6fa5f29
991263-FirstUsedCellUG
KarthikaSF4773 Dec 17, 2025
6db6163
991692-Sunburst
SivakumarRamya Dec 17, 2025
d24af6a
991263-FirstUsedCellUG
KarthikaSF4773 Dec 17, 2025
1b65f4f
Dec2SprintNavigationLink
KarthikaSF4773 Dec 17, 2025
86a56ac
991692-Sunburst
SivakumarRamya Dec 17, 2025
ad40196
991692-Sunburst
SivakumarRamya Dec 17, 2025
404e83c
992308-FontStyle
SivakumarRamya Dec 19, 2025
445bc90
991692-Sunburst
SivakumarRamya Dec 19, 2025
f392651
992308-FontStyle
SivakumarRamya Dec 19, 2025
42c2855
992308-FontStyle
SivakumarRamya Dec 19, 2025
0998ad5
Delete Document-Processing/Excel/Excel-Library/NET/faqs/How-to-apply-…
SivakumarRamya Dec 19, 2025
77984c7
999367: Updated Notes UG to Hotfix JS, React, Vue, Core and MVC
gopinathan-sf4977 Dec 19, 2025
55d3a3d
999367: Updated Comments UG to Hotfix JS, React, Vue, Core and MVC
gopinathan-sf4977 Dec 19, 2025
6678d90
999367: Resolved preview sample issue
gopinathan-sf4977 Dec 19, 2025
44191fd
999367: Resolved preview sample issue
gopinathan-sf4977 Dec 19, 2025
e6baa77
1000669-AddYouTubeLink
KarthikaSF4773 Dec 22, 2025
15c3900
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Dec 22, 2025
f4c0d65
1234: Updated Video Reference form fields and form Designer for React…
SF4524LogeshKumar Dec 23, 2025
0b862ae
Merge pull request #2037 from syncfusion-content/1234-videoRefReact
AnanthaGokulaRaman Dec 23, 2025
fc172ff
test results are updated in Document-Processing/Release-Notes/v32.1.2…
DeepakRajSundar Dec 23, 2025
9ae73e4
999869 Update the API key filepath support in the mcp document - HF
AtchayaSekar28 Dec 23, 2025
9d1272e
Merge pull request #2039 from syncfusion-content/API-Key-Changes-HF
Ramaraj-Marimuthu Dec 23, 2025
318d8b0
988546-PreserveTypes
KarthikaSF4773 Dec 23, 2025
5fbc39c
ES-998478-Changes Added
Kathiresan4347 Dec 24, 2025
5919b2b
995973-IconSetSupport
KarthikaSF4773 Dec 24, 2025
3cd54d9
Dec2SprintNavigationLink
KarthikaSF4773 Dec 24, 2025
2783e2c
Dec2SprintNavigationLink
KarthikaSF4773 Dec 24, 2025
97bfba8
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
KarthikaSF4773 Dec 24, 2025
be52f4a
Dec2SprintNavigationLink
KarthikaSF4773 Dec 24, 2025
4d23884
1000370: Preview Sample Issues Resolved in JS
SF4524LogeshKumar Dec 23, 2025
5df3371
1000370: Preview sample issues in React PDF Viewer
SF4524LogeshKumar Dec 23, 2025
32538d6
1000370: Preview Sample Issues resolved in Vue
SF4524LogeshKumar Dec 23, 2025
55130a3
1000370: Preview Sample Issues fix in Angular
SF4524LogeshKumar Dec 23, 2025
9c05c9d
1000370: Resolved CI failures
SF4524LogeshKumar Dec 24, 2025
da31c35
1000370: Updated Preview Sample Issues and CI failures in javascript-es6
SF4524LogeshKumar Dec 24, 2025
bb3efcf
1000370: Resolved CI failure in javascript-es6
SF4524LogeshKumar Dec 24, 2025
1166b37
ES-998478-Revert unwanted changes
Kathiresan4347 Dec 24, 2025
cf04ba8
Merge pull request #2043 from syncfusion-content/ES-998478_Sensitivit…
MathanKumarVaradhaRajaPerumal Dec 24, 2025
0f71212
Merge pull request #2045 from syncfusion-content/1000370-HFpreviewSam…
AnanthaGokulaRaman Dec 24, 2025
b227dcf
1000184: Resolved the TOC failures.
sameerkhan001 Dec 26, 2025
55d66b7
Merge pull request #2053 from syncfusion-content/1000184
Moorthy-K Dec 26, 2025
6e07943
1000184-h: Resolved the TOC failures.
sameerkhan001 Dec 29, 2025
76118b8
Merge pull request #2059 from syncfusion-content/1000184-h
chinnumuniyappan Dec 29, 2025
b34de80
Merge pull request #2029 from syncfusion-content/1000669-AddYouTubeLink
Mohan2401 Dec 29, 2025
31fa2ec
Update Import-to-Excel.md
Mohan2401 Dec 29, 2025
8d54d38
Merge branch 'hotfix/hotfix-v32.1.19' into 988546-PreserveTypes
Mohan2401 Dec 29, 2025
cf713e2
Merge pull request #1984 from syncfusion-content/991263-FirstUsedCellUG
Mohan2401 Dec 29, 2025
b3dfbf8
Merge pull request #1987 from syncfusion-content/Dec2SprintNavigation…
Mohan2401 Dec 29, 2025
5c887d2
Merge pull request #2041 from syncfusion-content/988546-PreserveTypes
Mohan2401 Dec 29, 2025
4aed566
1001393-ug: Added proper API link changes.
sameerkhan001 Dec 29, 2025
69b09e9
Merge pull request #2061 from syncfusion-content/1001393-ug
chinnumuniyappan Dec 29, 2025
778616f
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Dec 29, 2025
29986e9
Update how-to-set-the-color-for-the-dynamic-series-in-sunburst-chart.md
Mohan2401 Dec 30, 2025
2b78882
Merge branch 'hotfix/hotfix-v32.1.19' into 991692-Sunburst
Mohan2401 Dec 30, 2025
c34834d
Merge pull request #2019 from syncfusion-content/992308-FontStyle
Mohan2401 Dec 30, 2025
204abb7
Merge pull request #1985 from syncfusion-content/991692-Sunburst
Mohan2401 Dec 30, 2025
b0bd496
1000615: Visible the storage document in core and MVC document editor
ManoSF4839 Dec 30, 2025
f9d7b7e
1000615: Ci failures
ManoSF4839 Dec 30, 2025
211ca7d
1000615: CI failures
ManoSF4839 Dec 30, 2025
e647787
1000615: Ci failures
ManoSF4839 Dec 30, 2025
0178b87
1000615: openHot
ManoSF4839 Dec 30, 2025
365168e
Merge pull request #2072 from syncfusion-content/1000615-openHot
MohanaselvamJothi Dec 31, 2025
4f7fb64
ES-999797-Changes added
Kathiresan4347 Dec 31, 2025
ab896eb
Merge pull request #2044 from syncfusion-content/995973-IconSetSupport
Mohan2401 Dec 31, 2025
be48f3a
ES-999797-changes added
Kathiresan4347 Dec 31, 2025
b8a6eee
ES-999797-Changes added
Kathiresan4347 Dec 31, 2025
b29da63
ES-999797-Changes added
Kathiresan4347 Jan 2, 2026
74fc2e1
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
Kathiresan4347 Jan 2, 2026
26a18fe
ES-999797-Feedback addressed
Kathiresan4347 Jan 2, 2026
1afbd5e
ES-999797-Revert unwanted changes
Kathiresan4347 Jan 2, 2026
ed10480
Merge pull request #2073 from syncfusion-content/ES-999797_CSS_Selector
MathanKumarVaradhaRajaPerumal Jan 2, 2026
1100d85
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Jan 5, 2026
fd285df
1002794: Updated UG documentation with File overload support for Cros…
jeyalakshmit Jan 6, 2026
2c6e2c7
1002931: Update the CSS references for Ribbon mode
Akshaya0404 Jan 6, 2026
5fdac69
Merge pull request #2079 from syncfusion-content/1002794-sampleupdate
chinnumuniyappan Jan 6, 2026
16ccad9
1002931: Update the CSS references for Ribbon mode
Akshaya0404 Jan 6, 2026
1dc56b4
1002931: RibbonCSS
Akshaya0404 Jan 6, 2026
372bda9
Merge branch 'hotfix/hotfix-v32.1.19' into 1002931-RibbonCSS
Akshaya0404 Jan 6, 2026
200e0e0
1000731-ChartNameUG
santiprajaSF4793 Jan 7, 2026
9ab7742
1002931: Track changes page not available in MVC side panel (TOC) in UG
Akshaya0404 Jan 7, 2026
3158bcc
Merge branch '1002931-RibbonCSS' of https://github.com/syncfusion-con…
Akshaya0404 Jan 7, 2026
70f8b37
Merge pull request #2080 from syncfusion-content/1002931-RibbonCSS
MohanaselvamJothi Jan 7, 2026
3c3692a
Merge pull request #2023 from syncfusion-content/EJ2-999367-UG
sridhar-alagirisamy Jan 8, 2026
2ba7869
1001842: Forms Review and Corrections Ts.
SF4524LogeshKumar Jan 7, 2026
f99af31
1001842: Resolved CI Failures
SF4524LogeshKumar Jan 7, 2026
af58275
1001842: Updated GIF images and proper locations
SF4524LogeshKumar Jan 8, 2026
f2cb60c
Merge pull request #2087 from syncfusion-content/1003205-Hf-FormsReview
AnanthaGokulaRaman Jan 8, 2026
5dff017
996394: UG Update for Annotation Revamp Part-1
SF4524LogeshKumar Dec 9, 2025
c2cfd03
996394: Annotation Revamp Distance-Free-Text-Highlight and Ink
SF4524LogeshKumar Dec 10, 2025
74a7199
996394: Line and Perimeter Annotation Updates
SF4524LogeshKumar Dec 12, 2025
0568664
996394: Updated Annotation Types in Annotation Section UG
SF4524LogeshKumar Dec 15, 2025
319f65b
996394: Updated UG Documentation for Annotation Revamp
SF4524LogeshKumar Dec 16, 2025
ae479f0
996394: Updated UG for Annotation Section
SF4524LogeshKumar Dec 17, 2025
2e5d2a2
996394: Updated TOC and See also for Annotation Revamp
SF4524LogeshKumar Dec 18, 2025
cefd784
996394: Removed wrongly updated images.
SF4524LogeshKumar Dec 18, 2025
cd3af16
996394: Resolved CI failures for Annotation Revamp
SF4524LogeshKumar Dec 18, 2025
94512d9
1003205: Updated Review Corrections overview and TextMarkup Annotation
SF4524LogeshKumar Jan 8, 2026
824d421
1003205: Review Correction Annotation TOC Update including undo redo
SF4524LogeshKumar Jan 8, 2026
e4b9156
1003205: Updated Pending Review Corrections Annotations
SF4524LogeshKumar Jan 9, 2026
77484ea
1003205: Resolved CI failures
SF4524LogeshKumar Jan 9, 2026
9e30ebf
1001842: Forms Gif Update
SF4524LogeshKumar Jan 9, 2026
67fd2e4
1001842: Updated Forms Navigation Update.
SF4524LogeshKumar Jan 9, 2026
3d36e6f
1001842: Resolved CI failure
SF4524LogeshKumar Jan 9, 2026
b32bce9
Merge pull request #2090 from syncfusion-content/1003205-HFAnnotation…
AnanthaGokulaRaman Jan 9, 2026
5f543ab
Merge pull request #2092 from syncfusion-content/1001842-HfFormsgifUp…
AnanthaGokulaRaman Jan 9, 2026
6350fca
ES-967048-Changes added
Kathiresan4347 Jan 9, 2026
6e2262c
996400: Updated overview for print in PDF Viewer
SF4524LogeshKumar Dec 19, 2025
241083b
996400: Print Revamp and Restructure
SF4524LogeshKumar Dec 22, 2025
e1c6a81
996400: Resolved CI failures for Print UG Documentation Revamp
SF4524LogeshKumar Dec 22, 2025
6972b8c
996400: Updated See Also Section in Print
SF4524LogeshKumar Dec 22, 2025
7c46a1a
996399: Updated Text Search UG
SF4524LogeshKumar Dec 18, 2025
4e5cf51
996399: Text Search and Extraction Revamp
SF4524LogeshKumar Dec 19, 2025
299564e
996399: Resolved CI failures
SF4524LogeshKumar Dec 19, 2025
66514dc
1000665: Updated Localization Revamp and Restructuring
SF4524LogeshKumar Dec 22, 2025
8163311
1000665: Resolved CI Failure
SF4524LogeshKumar Dec 22, 2025
c1afeee
1003503: Text Search Print Locale Review Updates
SF4524LogeshKumar Jan 9, 2026
5a6048b
Merge pull request #2096 from syncfusion-content/1003503-HFTextSearch…
AnanthaGokulaRaman Jan 11, 2026
5cc55f5
ES-967048-Changes added
Kathiresan4347 Jan 12, 2026
ff5b939
ES-967048-Changes added
Kathiresan4347 Jan 12, 2026
b181475
1003264-ug: Updated the .wasm script inclusion details in JavaScript …
sameerkhan001 Jan 12, 2026
4a0152f
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Jan 12, 2026
d12ebab
1003264-ug: Resolved the given feedback
sameerkhan001 Jan 12, 2026
79a8a55
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
sameerkhan001 Jan 12, 2026
87be45a
Merge pull request #2098 from syncfusion-content/1003264-ug
SF2381 Jan 12, 2026
47289c1
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
Kathiresan4347 Jan 13, 2026
24a6e57
ES-967048-Changes Added
Kathiresan4347 Jan 13, 2026
71facb8
ES-967048-Changes added
Kathiresan4347 Jan 13, 2026
da30213
1000731-Removed the unwanted code
santiprajaSF4793 Jan 13, 2026
ef11fdc
1001194-NamedRangeUG
santiprajaSF4793 Jan 13, 2026
03a3379
1001194-Added space
santiprajaSF4793 Jan 13, 2026
6417813
Merge pull request #2084 from syncfusion-content/1000731-ChartNameUG
Mohan2401 Jan 14, 2026
5a4c447
Merge pull request #2105 from syncfusion-content/1001194-NamedRangeUG
Mohan2401 Jan 14, 2026
9c801ed
1004110-ug: Added a date field to a PDF form
sameerkhan001 Jan 14, 2026
e51b5fd
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
sameerkhan001 Jan 14, 2026
5a34e51
1004110-ug: Resolved CI failures.
sameerkhan001 Jan 14, 2026
919ec82
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
Kathiresan4347 Jan 14, 2026
b9c0323
ES-967048-Changes Added
Kathiresan4347 Jan 14, 2026
e736f7f
ES-967048-Feedback addressed
Kathiresan4347 Jan 14, 2026
71b6078
ES-967048-CI Issue resolved
Kathiresan4347 Jan 14, 2026
da7a525
ES-967048-Feedback addressed
Kathiresan4347 Jan 14, 2026
6a1f8bc
1002609: Updated Annotation Types UG Documentation in JS ES5.
SF4524LogeshKumar Jan 5, 2026
b0a59d7
1002609: Revamp and Restructure JavaScript ES5
SF4524LogeshKumar Jan 6, 2026
cc9ab46
1002609: Resolved CI failure
SF4524LogeshKumar Jan 7, 2026
ab623e0
1002609: Forms Review and Corrections
SF4524LogeshKumar Jan 13, 2026
5cc636b
1002609: Annotations Review and Corrections JS ES5
SF4524LogeshKumar Jan 14, 2026
cbd6dcc
1002609: Resolved CI failure
SF4524LogeshKumar Jan 14, 2026
83bea4e
1004110-ug: Added GitHub details.
sameerkhan001 Jan 14, 2026
f6df4b5
1002609: Updated Review Correction for Text Search Localization and P…
SF4524LogeshKumar Jan 14, 2026
bfc7a1d
1002609: Resoled CI failures
SF4524LogeshKumar Jan 14, 2026
dfe542c
Merge pull request #2109 from syncfusion-content/1002609-HotfixRevamp…
AnanthaGokulaRaman Jan 16, 2026
faa275d
Merge branch 'hotfix/hotfix-v32.1.19' into 1004110-ug
sameerkhan001 Jan 19, 2026
4e2c53d
Merge pull request #2106 from syncfusion-content/1004110-ug
Moorthy-K Jan 19, 2026
29a495e
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
Kathiresan4347 Jan 19, 2026
ac44802
ES-967048-Changes added
Kathiresan4347 Jan 19, 2026
2514048
1005083: Rename Sample Folders to Standard Blazor WebAssembly and Bla…
Hemaprasanth-Hari Jan 19, 2026
f0f2150
1005083: Update the PR
Hemaprasanth-Hari Jan 19, 2026
daee661
1005083: Update the PR
Hemaprasanth-Hari Jan 19, 2026
fc65f37
SEO-211225-Document-Processing-pdf-library
hillary-ochieng Jan 19, 2026
d1a07f4
Merge pull request #2116 from syncfusion-content/ES-1005083-RenameFolder
GokulprasathVenkatachalam Jan 19, 2026
d174465
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Jan 19, 2026
a5519c2
Merge pull request #2093 from syncfusion-content/ES-967048_-Supported…
MathanKumarVaradhaRajaPerumal Jan 20, 2026
15cf360
FLUT-1005472: Add the Flutter PDF content from Flutter UG
immankumarsync Jan 20, 2026
31c9052
Merge pull request #2124 from syncfusion-content/FLUT-1005472-pdf
chinnumuniyappan Jan 20, 2026
5b9a057
Merge branch 'hotfix/hotfix-v32.1.19' into SEO-211225-Document-Proces…
hillary-ochieng Jan 21, 2026
ded2f93
Merged pull request #2117 from hillary-ochieng/SEO-211225-Document-Pr…
Aishwarya-Ganesan Jan 21, 2026
0431e4c
9670048-Changes added
Kathiresan4347 Jan 21, 2026
d415b32
Merge pull request #2129 from syncfusion-content/967048_-Supported_an…
MathanKumarVaradhaRajaPerumal Jan 21, 2026
8d31f89
FLUT-1005472: Corerct the platform value in the Flutter PDF files
immankumarsync Jan 22, 2026
00c2368
Merge branch 'hotfix/hotfix-v32.1.19' of https://github.com/syncfusio…
immankumarsync Jan 22, 2026
b9c6509
Merge pull request #2133 from syncfusion-content/FLUT-1005472-pdf
immankumarsync Jan 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
353 changes: 277 additions & 76 deletions Document-Processing-toc.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,24 @@ A complete working example to import data from DataTable to Excel in C# is prese

N> XlsIO imports the data from data table into Excel worksheet based on the data table column type. So, it is suggested to create the data tables with required column types such as number, text or date time before importing the data table to Excel worksheet.

### Preserve Data Types

To preserve data types when importing a DataTable into an Excel worksheet, set the **preserveTypes** parameter of the <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ImportDataTable_System_Data_DataTable_System_Boolean_System_Int32_System_Int32_System_Boolean_">ImportDataTable</a> method to **true**.

{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
worksheet.ImportDataTable(table, false, 1, 1, true); // preserveTypes = true
{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
worksheet.ImportDataTable(table, false, 1, 1, true); // preserveTypes = true
{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
worksheet.ImportDataTable(table, False, 1, 1, True) ' preserveTypes = True
{% endhighlight %}
{% endtabs %}

## DataColumn to Excel

The following code example illustrates how to import DataColumn into an Excel using [ImportDataColumn](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ImportDataColumn_System_Data_DataColumn_System_Boolean_System_Int32_System_Int32_) method.
Expand Down Expand Up @@ -2609,4 +2627,4 @@ Using excelEngine As ExcelEngine = New ExcelEngine()
workbook.SaveAs("Output.xlsx")
End Using
{% endhighlight %}
{% endtabs %}
{% endtabs %}
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,9 @@ A complete working example to remove comment in C# is present on [this GitHub pa

Threaded comments are a way to add and organize annotations or discussions related to specific cells in a worksheet. [IThreadedComment](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IThreadedComment.html) object represents a threaded comment in a worksheet.

To quickly learn how to add, reply to, resolve, delete, and clear threaded comments in Excel documents, check out this video.
{% youtube "https://www.youtube.com/watch?v=h8x62gZLxng" %}

### Create

The following code explains how to create a threaded comment for a specific cell using [AddThreadedComment](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_AddThreadedComment_System_String_System_String_System_DateTime_) method.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Support for changing icon set colors in Excel | Syncfusion
description: This page explains whether Syncfusion XlsIO supports changing the colors of built-in icon sets in Excel using the Syncfusion .NET Excel library (XlsIO).
platform: document-processing
control: XlsIO
documentation: UG
---

# Does XlsIO support changing the colors of built-in icon sets?

No. In Microsoft Excel, the colors of built-in icon sets used in conditional formatting (such as arrows, traffic lights, and symbols) are fixed and cannot be customized. XlsIO follows the same behavior and does not provide support for changing these icon colors programmatically. You can apply icon sets and configure their thresholds through conditional formatting, but the icon colors remain predefined by Excel.
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
title: How to apply styles to an Entire Excel Worksheet | Syncfusion
description: Learn how to apply font settings and fill color to an entire Excel worksheet using the Syncfusion .NET Excel library (XlsIO) in C# and VB.NET.
platform: document-processing
control: XlsIO
documentation: UG
---

# How to apply styles to the entire worksheet in Excel?

The following examples show how to apply font attributes (name and size) and fill color to an entire worksheet using C# (cross-platform and Windows-specific) and VB.NET.

{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open("../../../Data/Input.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];

//Define new styles to apply in rows and columns
IStyle columnStyle = workbook.Styles.Add("ColumnStyle");
columnStyle.Font.FontName = "Times New Roman";
columnStyle.Font.Size = 10;
columnStyle.Color = Color.Pink;

worksheet.SetDefaultColumnStyle(1, 16384, columnStyle);

//Save the Excel document
workbook.SaveAs("../../../Output/FontStyle.xlsx");
}
{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open("../../Data/Input.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];

//Define new styles to apply in rows and columns
IStyle columnStyle = workbook.Styles.Add("ColumnStyle");
columnStyle.Font.FontName = "Times New Roman";
columnStyle.Font.Size = 10;
columnStyle.Color = Color.Pink;

worksheet.SetDefaultColumnStyle(1, 16384, columnStyle);

//Save the Excel document
workbook.SaveAs("../../Output/FontStyle.xlsx");

}
{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
Using excelEngine As New ExcelEngine()
Dim application As IApplication = excelEngine.Excel
application.DefaultVersion = ExcelVersion.Xlsx

Dim workbook As IWorkbook = application.Workbooks.Open("../../Data/Input.xlsx", ExcelOpenType.Automatic)
Dim worksheet As IWorksheet = workbook.Worksheets(0)

'Define new styles to apply in rows and columns
Dim columnStyle As IStyle = workbook.Styles.Add("ColumnStyle")
columnStyle.Font.FontName = "Times New Roman"
columnStyle.Font.Size = 10
columnStyle.Color = Color.Pink

worksheet.SetDefaultColumnStyle(1, 16384, columnStyle)

'Save the Excel document
workbook.SaveAs("../../Output/FontStyle.xlsx")
End Using
{% endhighlight %}
{% endtabs %}

N>
* Applying a default style to cells replaces any existing styles. This is standard Excel behavior.
* To add new styling without removing existing formats, set specific properties on targeted ranges.

The following code snippet shows how to apply a new style without affecting existing styles:

{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
worksheet.Range["A1:F13"].CellStyle.Font.FontName = "Times New Roman";
worksheet.Range["A1:F13"].CellStyle.Font.Size = 10;
worksheet.Range["A1:F13"].CellStyle.Color = Color.Lavender;
{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
worksheet.Range["A1:F13"].CellStyle.Font.FontName = "Times New Roman";
worksheet.Range["A1:F13"].CellStyle.Font.Size = 10;
worksheet.Range["A1:F13"].CellStyle.Color = Color.Lavender;
{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
worksheet.Range("A1:F13").CellStyle.Font.FontName = "Times New Roman"
worksheet.Range("A1:F13").CellStyle.Font.Size = 10
worksheet.Range("A1:F13").CellStyle.Color = Color.Lavender
{% endhighlight %}
{% endtabs %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
title: Retrieve the first cell in the used range in Excel | Syncfusion
description: Code example to retrieve the first cell in the used range in an Excel worksheet using Syncfusion .NET Excel library (XlsIO).
platform: document-processing
control: XlsIO
documentation: UG
---

# How to retrieve the first cell in the used range in Excel?

The following code examples demonstrate retrieving the first cell in the used range of an Excel worksheet using C# (Cross-platform and Windows-specific) and VB.NET.

{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/FAQ/First%20used%20cell%20in%20used%20range/.NET/FirstUsedCellInUsedRange/FirstUsedCellInUsedRange/Program.cs,180" %}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];

//Get the used range of the worksheet
IRange usedRange = worksheet.UsedRange;

//Get the first cell from the used range
IRange firstCell = worksheet.Range[usedRange.Row, usedRange.Column];

//Get the address of the first cell
string firstCellAddress = firstCell.AddressLocal;

//Display the address of the first cell
Console.WriteLine("The address of the first used cell in used range is: " + firstCellAddress);

//Save the workbook
workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx"));
}
{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open("Input.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];

//Get the used range of the worksheet
IRange usedRange = worksheet.UsedRange;

//Get the first cell from the used range
IRange firstCell = worksheet.Range[usedRange.Row, usedRange.Column];

//Get the address of the first cell
string firstCellAddress = firstCell.AddressLocal;

//Display the address of the first cell
Console.WriteLine("The address of the first used cell in used range is: " + firstCellAddress);

//Save the workbook
workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
Using excelEngine As New ExcelEngine()
Dim application As IApplication = excelEngine.Excel
application.DefaultVersion = ExcelVersion.Xlsx
Dim workbook As IWorkbook = application.Workbooks.Open("Input.xlsx")
Dim worksheet As IWorksheet = workbook.Worksheets(0)

'Get the used range of the worksheet
Dim usedRange As IRange = worksheet.UsedRange

'Get the first cell from the used range
Dim firstCell As IRange = worksheet.Range(usedRange.Row, usedRange.Column)

'Get the address of the first cell
Dim firstCellAddress As String = firstCell.AddressLocal

'Display the address of the first cell
Console.WriteLine("The address of the first used cell in used range is: " & firstCellAddress)

'Save the workbook
workbook.SaveAs("Output.xlsx")
End Using
{% endhighlight %}
{% endtabs %}

A complete working example in C# is present on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/FAQ/First%20used%20cell%20in%20used%20range/.NET/FirstUsedCellInUsedRange">this GitHub page</a>.
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: Retrieve the list of named ranges in an Excel workbook | Syncfusion
description: Code example to retrieve the list of named ranges in an Excel workbook using Syncfusion .NET Excel library (XlsIO).
platform: document-processing
control: XlsIO
documentation: UG
---

# How to retrieve the list of named ranges in an Excel workbook?

The following code examples demonstrate retrieving the list of named ranges in an Excel workbook using C# (Cross-platform and Windows-specific) and VB.NET.

{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/FAQ/Named%20Range/.NET/RetrieveNamedRanges/RetrieveNamedRanges/Program.cs,180" %}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];

//Retrieving names defined in the workbook
IName[] names = new IName[workbook.Names.Count];
for (int i = 0; i < workbook.Names.Count; i++)
{
names[i] = workbook.Names[i];
Console.WriteLine(names[i].Name);
}

//Saving the workbook
workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx"));
}
{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open("Input.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];

//Retrieving names defined in the workbook
IName[] names = new IName[workbook.Names.Count];
for (int i = 0; i < workbook.Names.Count; i++)
{
names[i] = workbook.Names[i];
Console.WriteLine(names[i].Name);
}

//Saving the workbook
workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
Using excelEngine As New ExcelEngine()
' Instantiate the Excel application object
Dim application As IApplication = excelEngine.Excel

' Set the default application version
application.DefaultVersion = ExcelVersion.Xlsx

' Load the existing Excel workbook into IWorkbook
Dim workbook As IWorkbook = application.Workbooks.Open("Input.xlsx")

' Get the first worksheet in the workbook into IWorksheet
Dim worksheet As IWorksheet = workbook.Worksheets(0)

' Retrieving names defined in the workbook
Dim names(workbook.Names.Count - 1) As IName
For i As Integer = 0 To workbook.Names.Count - 1
names(i) = workbook.Names(i)
Console.WriteLine(names(i).Name)
Next

' Saving the workbook
workbook.SaveAs("Output.xlsx")
End Using
{% endhighlight %}
{% endtabs %}

A complete working example in C# is present on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/FAQ/Named%20Range/.NET/RetrieveNamedRanges">this GitHub page</a>.
Loading