# C1.C1Excel.XLStyle.Format

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Excel_XLStyle_Format_" data-uid="C1.C1Excel.XLStyle.Format*">Format Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Excel_XLStyle_Format_" data-uid="C1.C1Excel.XLStyle.Format*"></a>
<h4 id="C1_C1Excel_XLStyle_Format" data-uid="C1.C1Excel.XLStyle.Format">Format</h4>
<div class="markdown level1 summary"><p>Gets or sets the format associated with this <a class="xref" href="C1.C1Excel.XLStyle.html">XLStyle</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Format { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Format As String</code></pre>
</div>
<h5 id="C1_C1Excel_XLStyle_Format_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Excel uses formats similar, but not identical to .NET. Refer
to the Excel documentation for details on how to create format strings.</p>
<p>You can use the <a class="xref" href="C1.C1Excel.XLStyle.FormatXLToDotNet.html#C1_C1Excel_XLStyle_FormatXLToDotNet_System_String_">FormatXLToDotNet(string)</a> and <a class="xref" href="C1.C1Excel.XLStyle.FormatDotNetToXL.html#C1_C1Excel_XLStyle_FormatDotNetToXL_System_String_System_Globalization_CultureInfo_">FormatDotNetToXL(string, CultureInfo)</a>
methods to convert common Excel format strings to and from .NET format strings.</p>
</div>
</div>
