# C1.Win.Document.Util.C1HtmlGraphics

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Document_Util_C1HtmlGraphics" data-uid="C1.Win.Document.Util.C1HtmlGraphics" class="text-break">C1HtmlGraphics Class
</h1>
  <div class="markdown level0 summary"><p>Represents HTML graphics properties and methods.</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"><span class="xref">C1Graphics</span></div>
    <div class="level2"><span class="xref">C1ExportGraphicsBase</span></div>
    <div class="level3"><span class="xref">C1HtmlGraphics</span></div>
    <div class="level4"><span class="xref">C1HtmlGraphics</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Document.Util.html">C1.Win.Document.Util</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Document.10.dll</h6>
  <h5 id="C1_Win_Document_Util_C1HtmlGraphics_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1HtmlGraphics : C1HtmlGraphics, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1HtmlGraphics
    Inherits C1HtmlGraphics
    Implements IDisposable</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_Document_Util_C1HtmlGraphics__ctor_System_Xml_XmlWriter_C1_Document_C1Page_System_String_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.#ctor(System.Xml.XmlWriter,C1.Document.C1Page,System.String,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.-ctor.html#C1_Win_Document_Util_C1HtmlGraphics__ctor_System_Xml_XmlWriter_C1_Document_C1Page_System_String_System_Boolean_System_Boolean_System_Boolean_">C1HtmlGraphics(XmlWriter, C1Page, string, bool, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"></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_Document_Util_C1HtmlGraphics_CreateTextLayout" data-uid="C1.Win.Document.Util.C1HtmlGraphics.CreateTextLayout">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.CreateTextLayout.html#C1_Win_Document_Util_C1HtmlGraphics_CreateTextLayout">CreateTextLayout()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and initializes the <span class="xref">C1.Document.Util.C1TextLayout</span> object which can be used to render or measure text on the graphics.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1HtmlGraphics_CustomDraw_C1_Document_RenderFragment_C1_Document_FragmentDrawParams__" data-uid="C1.Win.Document.Util.C1HtmlGraphics.CustomDraw(C1.Document.RenderFragment,C1.Document.FragmentDrawParams@)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.CustomDraw.html#C1_Win_Document_Util_C1HtmlGraphics_CustomDraw_C1_Document_RenderFragment_C1_Document_FragmentDrawParams__">CustomDraw(RenderFragment, ref FragmentDrawParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Allows <span class="xref">C1.Document.Util.C1Graphics</span> descendant to override drawing of some render fragments.
This method should return true if drawing implemented by the C1Graphics in the custom way.
Only background and content should be drawn, borders are drawn always.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1HtmlGraphics_Dispose_System_Boolean_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.Dispose.html#C1_Win_Document_Util_C1HtmlGraphics_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1HtmlGraphics_DrawGlyphRun_System_Double_System_Double_System_Int32_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_Drawing_Color_C1_Document_Util_IC1TextRangeBase_C1_Document_Util_C1TextLayout_System_String_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.DrawGlyphRun(System.Double,System.Double,System.Int32,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.Drawing.Color,C1.Document.Util.IC1TextRangeBase,C1.Document.Util.C1TextLayout,System.String)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.DrawGlyphRun.html#C1_Win_Document_Util_C1HtmlGraphics_DrawGlyphRun_System_Double_System_Double_System_Int32_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_Drawing_Color_C1_Document_Util_IC1TextRangeBase_C1_Document_Util_C1TextLayout_System_String_">DrawGlyphRun(double, double, int, IntPtr, IntPtr, IntPtr, IntPtr, Color, IC1TextRangeBase, C1TextLayout, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1HtmlGraphics_GetHtmlColor_System_Drawing_Color_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.GetHtmlColor(System.Drawing.Color)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.GetHtmlColor.html#C1_Win_Document_Util_C1HtmlGraphics_GetHtmlColor_System_Drawing_Color_">GetHtmlColor(Color)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1HtmlGraphics_InternalCreateImage_GrapeCity_Documents_Drawing_IImage_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.InternalCreateImage(GrapeCity.Documents.Drawing.IImage)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.InternalCreateImage.html#C1_Win_Document_Util_C1HtmlGraphics_InternalCreateImage_GrapeCity_Documents_Drawing_IImage_">InternalCreateImage(IImage)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1HtmlGraphics_SaveImage_C1_Document_Util_INativeImage_System_String_System_Int32_System_Int32_System_Boolean_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.SaveImage(C1.Document.Util.INativeImage,System.String,System.Int32,System.Int32,System.Boolean)">
          <a class="xref" href="C1.Win.Document.Util.C1HtmlGraphics.SaveImage.html#C1_Win_Document_Util_C1HtmlGraphics_SaveImage_C1_Document_Util_INativeImage_System_String_System_Int32_System_Int32_System_Boolean_">SaveImage(INativeImage, string, int, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves image.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
