Skip to content

Commit 24a1ef6

Browse files
author
GowthamPonrajSF5414
committed
997323-add ClearFormats faq
1 parent 4ffe10e commit 24a1ef6

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
@@ -6424,6 +6424,9 @@
64246424
<li>
64256425
<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>
64266426
</li>
6427+
<li>
6428+
<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>
6429+
</li>
64276430
</ul>
64286431
</li>
64296432
</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 shows how to clear 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)