# C1.Util.DX.DirectWrite.TextLayout.SetInlineObject

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextLayout_SetInlineObject_" data-uid="C1.Util.DX.DirectWrite.TextLayout.SetInlineObject*">SetInlineObject Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextLayout_SetInlineObject_" data-uid="C1.Util.DX.DirectWrite.TextLayout.SetInlineObject*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextLayout_SetInlineObject_C1_Util_DX_DirectWrite_InlineObject_C1_Util_DX_DirectWrite_TextRange_" data-uid="C1.Util.DX.DirectWrite.TextLayout.SetInlineObject(C1.Util.DX.DirectWrite.InlineObject,C1.Util.DX.DirectWrite.TextRange)">SetInlineObject(InlineObject, TextRange)</h4>
<div class="markdown level1 summary"><p>Sets the 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 void SetInlineObject(InlineObject inlineObject, TextRange textRange)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetInlineObject(inlineObject As InlineObject, textRange As TextRange)</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.Util.DX.DirectWrite.InlineObject.html">InlineObject</a></td>
      <td><span class="parametername">inlineObject</span></td>
      <td><p>An application-defined inline object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.TextRange.html">TextRange</a></td>
      <td><span class="parametername">textRange</span></td>
      <td><p>Text range to which this change applies.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_DirectWrite_TextLayout_SetInlineObject_C1_Util_DX_DirectWrite_InlineObject_C1_Util_DX_DirectWrite_TextRange__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The application may call this function to specify the set of properties describing an application-defined inline object for specific range.  This inline object applies to the specified range and will be passed back to the application by way of the DrawInlineObject callback when the range is drawn. Any text in that range will be suppressed.</p>
</div>
</div>
