# FarPoint.Win.Spread.SpreadContextMenuStrip.GenerateMenuItems

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SpreadContextMenuStrip_GenerateMenuItems_" data-uid="FarPoint.Win.Spread.SpreadContextMenuStrip.GenerateMenuItems*">GenerateMenuItems Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SpreadContextMenuStrip_GenerateMenuItems_" data-uid="FarPoint.Win.Spread.SpreadContextMenuStrip.GenerateMenuItems*"></a>
<h4 id="FarPoint_Win_Spread_SpreadContextMenuStrip_GenerateMenuItems_FarPoint_Win_Spread_FpSpread_FarPoint_Win_Spread_ContextMenuType_System_Boolean_" data-uid="FarPoint.Win.Spread.SpreadContextMenuStrip.GenerateMenuItems(FarPoint.Win.Spread.FpSpread,FarPoint.Win.Spread.ContextMenuType,System.Boolean)">GenerateMenuItems(FpSpread, ContextMenuType, bool)</h4>
<div class="markdown level1 summary"><p>Generates default items for the context menu</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GenerateMenuItems(FpSpread spread, ContextMenuType contextMenuType, bool designMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GenerateMenuItems(spread As FpSpread, contextMenuType As ContextMenuType, designMode As Boolean)</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="FarPoint.Win.Spread.FpSpread.html">FpSpread</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>Spread component</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ContextMenuType.html">ContextMenuType</a></td>
      <td><span class="parametername">contextMenuType</span></td>
      <td><p>type of the context menu</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">designMode</span></td>
      <td><p><code>true</code> if design time items are generated; otherwise, <code>false</code></p>
</td>
    </tr>
  </tbody>
</table>
</div>
