# GrapeCity.Spreadsheet.Color.ToArgb

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Color_ToArgb_" data-uid="GrapeCity.Spreadsheet.Color.ToArgb*">ToArgb Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Color_ToArgb_" data-uid="GrapeCity.Spreadsheet.Color.ToArgb*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_ToArgb" data-uid="GrapeCity.Spreadsheet.Color.ToArgb">ToArgb()</h4>
<div class="markdown level1 summary"><p>Gets the 32-bit ARGB value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int ToArgb()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToArgb() As Integer</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The 32-bit ARGB value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Color_ToArgb_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Invoke this function only if the <a class="xref" href="GrapeCity.Spreadsheet.Color.Type.html#GrapeCity_Spreadsheet_Color_Type">Type</a> is <a class="xref" href="GrapeCity.Spreadsheet.ColorType.html#GrapeCity_Spreadsheet_ColorType_ARGB">ARGB</a> and <a class="xref" href="GrapeCity.Spreadsheet.Color.IsKnownColor.html#GrapeCity_Spreadsheet_Color_IsKnownColor">IsKnownColor()</a> is <code>false</code>.
<p>The <a class="xref" href="GrapeCity.Spreadsheet.Color.Tint.html#GrapeCity_Spreadsheet_Color_Tint">Tint</a> value isn't applied to the result.</p>
</div>
</div>
