# GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromVector

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_Icon_FromVector_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromVector*">FromVector Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_WinForms_Ribbon_Icon_FromVector_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromVector*"></a>
<h4 id="GrapeCity_Spreadsheet_WinForms_Ribbon_Icon_FromVector_System_Drawing_Size_System_Drawing_Color_System_String_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromVector(System.Drawing.Size,System.Drawing.Color,System.String)">FromVector(Size, Color, string)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of Icon with with specified key, size, color and image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Icon FromVector(Size size, Color color, string data)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromVector(size As Size, color As Color, data As String) As Icon</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.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The icon size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>Indicates the icon color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">data</span></td>
      <td></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.WinForms.Ribbon.Icon.html">Icon</a></td>
      <td><p>A new instance of Icon</p>
</td>
    </tr>
  </tbody>
</table>
</div>
