# GrapeCity.Spreadsheet.Color.FromArgb

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Color_FromArgb_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb*">FromArgb Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Color_FromArgb_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb(System.Int32)">FromArgb(int)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Color FromArgb(int argb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromArgb(argb As Integer) As Color</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">argb</span></td>
      <td><p>The ARGB components.</p>
</td>
    </tr>
  </tbody>
</table>
<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="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value that this method creates.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Color_FromArgb_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb(System.Int32,System.Int32,System.Int32,System.Int32)">FromArgb(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.
Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Color FromArgb(int alpha, int red, int green, int blue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromArgb(alpha As Integer, red As Integer, green As Integer, blue As Integer) As Color</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">alpha</span></td>
      <td><p>The alpha component. Valid values are 0 through 255.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">red</span></td>
      <td><p>The red component. Valid values are 0 through 255.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">green</span></td>
      <td><p>The green component. Valid values are 0 through 255.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">blue</span></td>
      <td><p>The blue component. Valid values are 0 through 255.</p>
</td>
    </tr>
  </tbody>
</table>
<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="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value that this method creates.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Color_FromArgb_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb(System.Int32,System.Int32,System.Int32)">FromArgb(int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.
Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Color FromArgb(int red, int green, int blue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromArgb(red As Integer, green As Integer, blue As Integer) As Color</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">red</span></td>
      <td><p>The red component. Valid values are 0 through 255.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">green</span></td>
      <td><p>The green component. Valid values are 0 through 255.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">blue</span></td>
      <td><p>The blue component. Valid values are 0 through 255.</p>
</td>
    </tr>
  </tbody>
</table>
<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="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value that this method creates.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
