# C1.Win.Command.C1ContextMenu

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Command_C1ContextMenu" data-uid="C1.Win.Command.C1ContextMenu" class="text-break">C1ContextMenu Class
</h1>
  <div class="markdown level0 summary"><p>Context menu.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="C1.Win.Command.C1Command.html">C1Command</a></div>
    <div class="level4"><a class="xref" href="C1.Win.Command.C1CommandMenu.html">C1CommandMenu</a></div>
    <div class="level5"><span class="xref">C1ContextMenu</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><span class="xref">ISupportSuperTooltip</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Command.html">C1.Win.Command</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Command.4.8.dll</h6>
  <h5 id="C1_Win_Command_C1ContextMenu_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1ContextMenu), &quot;C1ContextMenu.png&quot;)]
[C1Description(&quot;C1ContextMenu&quot;, &quot;Represents a command with a submenu (collection of command links) that can also be used as a context menu.&quot;)]
public class C1ContextMenu : C1CommandMenu, IComponent, IDisposable, ISupportSuperTooltip</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1ContextMenu), &quot;C1ContextMenu.png&quot;)&gt;
&lt;C1Description(&quot;C1ContextMenu&quot;, &quot;Represents a command with a submenu (collection of command links) that can also be used as a context menu.&quot;)&gt;
Public Class C1ContextMenu
    Inherits C1CommandMenu
    Implements IComponent, IDisposable, ISupportSuperTooltip</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu__ctor" data-uid="C1.Win.Command.C1ContextMenu.#ctor">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.-ctor.html#C1_Win_Command_C1ContextMenu__ctor">C1ContextMenu()</a>
        </td>
        <td class="markdown level1 summary"><p>A context menu.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_RightToLeft" data-uid="C1.Win.Command.C1ContextMenu.RightToLeft">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.RightToLeft.html#C1_Win_Command_C1ContextMenu_RightToLeft">RightToLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies a value indicating whether the text appears from right to left, such as when using Hebrew or Arabic fonts.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_SourceControl" data-uid="C1.Win.Command.C1ContextMenu.SourceControl">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.SourceControl.html#C1_Win_Command_C1ContextMenu_SourceControl">SourceControl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the control that is displaying the shortcut menu.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_CloseContextMenu" data-uid="C1.Win.Command.C1ContextMenu.CloseContextMenu">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.CloseContextMenu.html#C1_Win_Command_C1ContextMenu_CloseContextMenu">CloseContextMenu()</a>
        </td>
        <td class="markdown level1 summary"><p>Closes the currently open context menu if there is one.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_Dispose_System_Boolean_" data-uid="C1.Win.Command.C1ContextMenu.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.Dispose.html#C1_Win_Command_C1ContextMenu_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the resources used by the C1CommandMenu.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_OnBackColorChanged_System_EventArgs_" data-uid="C1.Win.Command.C1ContextMenu.OnBackColorChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.OnBackColorChanged.html#C1_Win_Command_C1ContextMenu_OnBackColorChanged_System_EventArgs_">OnBackColorChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_OnBackHiColorChanged_System_EventArgs_" data-uid="C1.Win.Command.C1ContextMenu.OnBackHiColorChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.OnBackHiColorChanged.html#C1_Win_Command_C1ContextMenu_OnBackHiColorChanged_System_EventArgs_">OnBackHiColorChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_OnBackgroundImageChanged_System_EventArgs_" data-uid="C1.Win.Command.C1ContextMenu.OnBackgroundImageChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.OnBackgroundImageChanged.html#C1_Win_Command_C1ContextMenu_OnBackgroundImageChanged_System_EventArgs_">OnBackgroundImageChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_OnForeColorChanged_System_EventArgs_" data-uid="C1.Win.Command.C1ContextMenu.OnForeColorChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.OnForeColorChanged.html#C1_Win_Command_C1ContextMenu_OnForeColorChanged_System_EventArgs_">OnForeColorChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_OnForeHiColorChanged_System_EventArgs_" data-uid="C1.Win.Command.C1ContextMenu.OnForeHiColorChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.OnForeHiColorChanged.html#C1_Win_Command_C1ContextMenu_OnForeHiColorChanged_System_EventArgs_">OnForeHiColorChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_ShowContextMenu_System_Windows_Forms_Control_System_Drawing_Point_" data-uid="C1.Win.Command.C1ContextMenu.ShowContextMenu(System.Windows.Forms.Control,System.Drawing.Point)">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.ShowContextMenu.html#C1_Win_Command_C1ContextMenu_ShowContextMenu_System_Windows_Forms_Control_System_Drawing_Point_">ShowContextMenu(Control, Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Shows the menu at the specified location.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Command_C1ContextMenu_Select" data-uid="C1.Win.Command.C1ContextMenu.Select">
          <a class="xref" href="C1.Win.Command.C1ContextMenu.Select.html">Select</a>
        </td>
        <td class="markdown level1 summary"><p>This event is for internal use only.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
