# C1.Util.DX.DirectWrite.InlineObject

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DirectWrite_InlineObject" data-uid="C1.Util.DX.DirectWrite.InlineObject" class="text-break">InlineObject Interface
</h1>
  <div class="markdown level0 summary"><p>IDWriteInlineObject</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.DirectWrite.html">C1.Util.DX.DirectWrite</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.4.8.dll</h6>
  <h5 id="C1_Util_DX_DirectWrite_InlineObject_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;8339FDE3-106F-47ab-8373-1C6295EB10B3&quot;)]
[Shadow(typeof(InlineObjectShadow))]
public interface InlineObject : ICallbackable, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;8339FDE3-106F-47ab-8373-1C6295EB10B3&quot;)&gt;
&lt;Shadow(GetType(InlineObjectShadow))&gt;
Public Interface InlineObject
    Inherits ICallbackable, IDisposable</code></pre>
  </div>
  <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_Util_DX_DirectWrite_InlineObject_Metrics" data-uid="C1.Util.DX.DirectWrite.InlineObject.Metrics">
          <a class="xref" href="C1.Util.DX.DirectWrite.InlineObject.Metrics.html#C1_Util_DX_DirectWrite_InlineObject_Metrics">Metrics</a>
        </td>
        <td class="markdown level1 summary"><p><a class="xref" href="C1.Util.DX.DirectWrite.TextLayout.html">TextLayout</a> calls this callback function to get the measurement of the inline object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_InlineObject_OverhangMetrics" data-uid="C1.Util.DX.DirectWrite.InlineObject.OverhangMetrics">
          <a class="xref" href="C1.Util.DX.DirectWrite.InlineObject.OverhangMetrics.html#C1_Util_DX_DirectWrite_InlineObject_OverhangMetrics">OverhangMetrics</a>
        </td>
        <td class="markdown level1 summary"><p>TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes.</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_Util_DX_DirectWrite_InlineObject_Draw_System_Object_C1_Util_DX_DirectWrite_TextRenderer_System_Single_System_Single_System_Boolean_System_Boolean_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.InlineObject.Draw(System.Object,C1.Util.DX.DirectWrite.TextRenderer,System.Single,System.Single,System.Boolean,System.Boolean,System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DirectWrite.InlineObject.Draw.html#C1_Util_DX_DirectWrite_InlineObject_Draw_System_Object_C1_Util_DX_DirectWrite_TextRenderer_System_Single_System_Single_System_Boolean_System_Boolean_System_IntPtr_">Draw(object, TextRenderer, float, float, bool, bool, IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>The application implemented rendering callback (<a class="xref" href="C1.Util.DX.DirectWrite.TextRenderer.DrawInlineObject.html#C1_Util_DX_DirectWrite_TextRenderer_DrawInlineObject_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_InlineObject_System_Boolean_System_Boolean_System_IntPtr_">DrawInlineObject(object, float, float, InlineObject, bool, bool, IntPtr)</a>) can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_InlineObject_GetBreakConditions_C1_Util_DX_DirectWrite_BreakCondition__C1_Util_DX_DirectWrite_BreakCondition__" data-uid="C1.Util.DX.DirectWrite.InlineObject.GetBreakConditions(C1.Util.DX.DirectWrite.BreakCondition@,C1.Util.DX.DirectWrite.BreakCondition@)">
          <a class="xref" href="C1.Util.DX.DirectWrite.InlineObject.GetBreakConditions.html#C1_Util_DX_DirectWrite_InlineObject_GetBreakConditions_C1_Util_DX_DirectWrite_BreakCondition__C1_Util_DX_DirectWrite_BreakCondition__">GetBreakConditions(out BreakCondition, out BreakCondition)</a>
        </td>
        <td class="markdown level1 summary"><p>Layout uses this to determine the line-breaking behavior of the inline object among the text.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
