# C1.Util.DX.DirectWrite.TextRenderer1Base.DrawInlineObject

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawInlineObject_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawInlineObject*">DrawInlineObject Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawInlineObject_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawInlineObject*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawInlineObject_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_InlineObject_System_Boolean_System_Boolean_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.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)</h4>
<div class="markdown level1 summary"><p>IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override HResult DrawInlineObject(object clientDrawingContext, float originX, float originY, InlineObject inlineObject, bool isSideways, bool isRightToLeft, IntPtr clientDrawingEffectPtr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function DrawInlineObject(clientDrawingContext As Object, originX As Single, originY As Single, inlineObject As InlineObject, isSideways As Boolean, isRightToLeft As Boolean, clientDrawingEffectPtr As IntPtr) As HResult</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">clientDrawingContext</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">originX</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">originY</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.InlineObject.html">InlineObject</a></td>
      <td><span class="parametername">inlineObject</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isSideways</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isRightToLeft</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">clientDrawingEffectPtr</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.HResult.html">HResult</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Util.DX.DirectWrite.TextRendererBase.DrawInlineObject.html#C1_Util_DX_DirectWrite_TextRendererBase_DrawInlineObject_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_InlineObject_System_Boolean_System_Boolean_System_IntPtr_">TextRendererBase.DrawInlineObject(object, float, float, InlineObject, bool, bool, IntPtr)</a></div>
<h5 class="implements">Implements</h5>
    <div><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_">TextRenderer.DrawInlineObject(object, float, float, InlineObject, bool, bool, IntPtr)</a></div>


<a id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawInlineObject_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawInlineObject*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawInlineObject_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_GlyphOrientationAngle_C1_Util_DX_DirectWrite_InlineObject_System_Boolean_System_Boolean_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawInlineObject(System.Object,System.Single,System.Single,C1.Util.DX.DirectWrite.GlyphOrientationAngle,C1.Util.DX.DirectWrite.InlineObject,System.Boolean,System.Boolean,System.IntPtr)">DrawInlineObject(object, float, float, GlyphOrientationAngle, InlineObject, bool, bool, IntPtr)</h4>
<div class="markdown level1 summary"><p>IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual HResult DrawInlineObject(object clientDrawingContext, float originX, float originY, GlyphOrientationAngle orientationAngle, InlineObject inlineObject, bool isSideways, bool isRightToLeft, IntPtr clientDrawingEffectPtr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function DrawInlineObject(clientDrawingContext As Object, originX As Single, originY As Single, orientationAngle As GlyphOrientationAngle, inlineObject As InlineObject, isSideways As Boolean, isRightToLeft As Boolean, clientDrawingEffectPtr As IntPtr) As HResult</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">clientDrawingContext</span></td>
      <td><p>The application-defined drawing context passed to IDWriteTextLayout::Draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">originX</span></td>
      <td><p>X-coordinate at the top-left corner of the inline object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">originY</span></td>
      <td><p>Y-coordinate at the top-left corner of the inline object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphOrientationAngle.html">GlyphOrientationAngle</a></td>
      <td><span class="parametername">orientationAngle</span></td>
      <td><p>Orientation of the inline object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.InlineObject.html">InlineObject</a></td>
      <td><span class="parametername">inlineObject</span></td>
      <td><p>The application-defined inline object set using IDWriteTextFormat::SetInlineObject.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isSideways</span></td>
      <td><p>A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isRightToLeft</span></td>
      <td><p>A Boolean flag that indicates whether the object is in a right-to-left context, hinting that the drawing may want to mirror the normal image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">clientDrawingEffectPtr</span></td>
      <td><p>Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of a line.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.HResult.html">HResult</a></td>
      <td><p>If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.DX.DirectWrite.TextRenderer1.DrawInlineObject.html#C1_Util_DX_DirectWrite_TextRenderer1_DrawInlineObject_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_GlyphOrientationAngle_C1_Util_DX_DirectWrite_InlineObject_System_Boolean_System_Boolean_System_IntPtr_">TextRenderer1.DrawInlineObject(object, float, float, GlyphOrientationAngle, InlineObject, bool, bool, IntPtr)</a></div>
</div>
