# C1.Win.FlexViewer.LabelActionElement.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexViewer_LabelActionElement__ctor_" data-uid="C1.Win.FlexViewer.LabelActionElement.#ctor*">LabelActionElement Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexViewer_LabelActionElement__ctor_" data-uid="C1.Win.FlexViewer.LabelActionElement.#ctor*"></a>
<h4 id="C1_Win_FlexViewer_LabelActionElement__ctor_C1_Win_FlexViewer_C1FlexViewer_C1_Win_Ribbon_RibbonLabel_C1_Win_FlexViewer_FlexViewerAction_System_Boolean_System_Boolean_" data-uid="C1.Win.FlexViewer.LabelActionElement.#ctor(C1.Win.FlexViewer.C1FlexViewer,C1.Win.Ribbon.RibbonLabel,C1.Win.FlexViewer.FlexViewerAction,System.Boolean,System.Boolean)">LabelActionElement(C1FlexViewer, RibbonLabel, FlexViewerAction, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexViewer.LabelActionElement.html">LabelActionElement</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LabelActionElement(C1FlexViewer fv, RibbonLabel ribbonLabel, FlexViewerAction action, bool forMinimizedRibbon = false, bool visibleDefault = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(fv As C1FlexViewer, ribbonLabel As RibbonLabel, action As FlexViewerAction, Optional forMinimizedRibbon As Boolean = False, Optional visibleDefault As Boolean = True)</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="C1.Win.FlexViewer.C1FlexViewer.html">C1FlexViewer</a></td>
      <td><span class="parametername">fv</span></td>
      <td><p><a class="xref" href="C1.Win.FlexViewer.C1FlexViewer.html">C1FlexViewer</a> which owns the element.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">RibbonLabel</span></td>
      <td><span class="parametername">ribbonLabel</span></td>
      <td><p>A <span class="xref">C1.Win.Ribbon.RibbonLabel</span> associated with the element.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexViewer.FlexViewerAction.html">FlexViewerAction</a></td>
      <td><span class="parametername">action</span></td>
      <td><p>The element action.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">forMinimizedRibbon</span></td>
      <td><p>Indicates if the item should appear only when the Ribbon is minimized.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">visibleDefault</span></td>
      <td><p>Indicates if the item should be visible by default.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
