Skip to content

Commit 94bdd9b

Browse files
authored
Merge pull request #2318 from syncfusion-content/997323-ClearFormats
Documentation(997323): FAQ for how to clear formats in a worksheet using XlsIO
2 parents ddc951c + e1bbbc4 commit 94bdd9b

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Document-Processing-toc.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6467,6 +6467,9 @@
64676467
<li>
64686468
<a href="/document-processing/excel/excel-library/net/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet">How to get the maximum rows and columns in a worksheet using XlsIO?</a>
64696469
</li>
6470+
<li>
6471+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-clear-formats-in-worksheet">How to clear formats in a worksheet using XlsIO?</a>
6472+
</li>
64706473
</ul>
64716474
</li>
64726475
</ul>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: How to clear formats in a worksheet | XlsIO | Syncfusion
3+
description: This page explains about how to clear all the formats in a worksheet using Syncfusion .NET Excel library (XlsIO).
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# How to clear formats in a worksheet using XlsIO?
10+
11+
You can clear all formats in an Excel worksheet by using the ClearFormat option of the [ExcelClearOptions](https://help.syncfusion.com/cr/document-processing/syncfusion.xlsio.excelclearoptions.html) enum on an [IRange](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html) object.
12+
13+
{% tabs %}
14+
{% highlight c# tabtitle="C# [Cross-platform]" %}
15+
// Clear formats in the worksheet
16+
worksheet.UsedRange.Clear(ExcelClearOptions.ClearFormat);
17+
{% endhighlight %}
18+
19+
{% highlight c# tabtitle="C# [Windows-specific]" %}
20+
// Clear formats in the worksheet
21+
worksheet.UsedRange.Clear(ExcelClearOptions.ClearFormat);
22+
{% endhighlight %}
23+
24+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
25+
' Clear formats in the worksheet
26+
worksheet.UsedRange.Clear(ExcelClearOptions.ClearFormat)
27+
{% endhighlight %}
28+
{% endtabs %}
29+

0 commit comments

Comments
 (0)