# C1.Win.FlexGrid.IC1EmbeddedEditor.C1EditorInitialize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_IC1EmbeddedEditor_C1EditorInitialize_" data-uid="C1.Win.FlexGrid.IC1EmbeddedEditor.C1EditorInitialize*">C1EditorInitialize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_IC1EmbeddedEditor_C1EditorInitialize_" data-uid="C1.Win.FlexGrid.IC1EmbeddedEditor.C1EditorInitialize*"></a>
<h4 id="C1_Win_FlexGrid_IC1EmbeddedEditor_C1EditorInitialize_System_Object_System_Collections_IDictionary_" data-uid="C1.Win.FlexGrid.IC1EmbeddedEditor.C1EditorInitialize(System.Object,System.Collections.IDictionary)">C1EditorInitialize(object, IDictionary)</h4>
<div class="markdown level1 summary"><p>Called to initialize the editor content and styles.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void C1EditorInitialize(object value, IDictionary editorAttributes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub C1EditorInitialize(value As Object, editorAttributes As IDictionary)</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.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Contains the grid data that should be displayed in the editor.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.idictionary">IDictionary</a></td>
      <td><span class="parametername">editorAttributes</span></td>
      <td><p>Contains a dictionary with keys that correspond to style element names and values for the cell being edited.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_IC1EmbeddedEditor_C1EditorInitialize_System_Object_System_Collections_IDictionary__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code class="paramref">editorAttributes</code> dictionary contains the following keys:</p>
<p><b>BackColor</b>: Cell background color.</p>
<p><b>ForeColor</b>: Cell foreground color.</p>
<p><b>Font</b>: Cell font.</p>
<p><b>Format</b>: Cell format string (e.g. "#,##0.##").</p>
<p><b>ContentAlignment</b>: Cell text alignment.</p>
<p><b>Margins</b>: Extra margins around the cell content (in pixels).</p>
<p><b>Wrap</b>: Whether word wrapping is enabled.</p>
</div>
</div>
