Ejemplo n.º 1
0
 /// <summary>
 /// Sets the inline object.
 /// </summary>
 /// <remarks>
 /// 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.
 /// </remarks>
 /// <param name="inlineObject">An application-defined inline object.  </param>
 /// <param name="textRange">Text range to which this change applies. </param>
 /// <returns>If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. </returns>
 /// <unmanaged>HRESULT IDWriteTextLayout::SetInlineObject([None] IDWriteInlineObject* inlineObject,[None] DWRITE_TEXT_RANGE textRange)</unmanaged>
 public void SetInlineObject(InlineObject inlineObject, SharpDX.DirectWrite.TextRange textRange)
 {
     SetInlineObject_(InlineObjectShadow.ToIntPtr(inlineObject), textRange);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// <p> Sets trimming options for text overflowing the layout width. </p>
 /// </summary>
 /// <param name="trimmingOptions"><dd> <p>Text trimming options.</p> </dd></param>
 /// <param name="trimmingSign"><dd> <p>Application-defined omission sign. This parameter may be <strong><c>null</c></strong>. See <strong><see cref="SharpDX.DirectWrite.InlineObject"/></strong> for more information.</p> </dd></param>
 /// <returns><p>If this method succeeds, it returns <strong><see cref="SharpDX.Result.Ok"/></strong>. Otherwise, it returns an <strong><see cref="SharpDX.Result"/></strong> error code.</p></returns>
 /// <msdn-id>dd316712</msdn-id>
 /// <unmanaged>HRESULT IDWriteTextFormat::SetTrimming([In] const DWRITE_TRIMMING* trimmingOptions,[In] IDWriteInlineObject* trimmingSign)</unmanaged>
 /// <unmanaged-short>IDWriteTextFormat::SetTrimming</unmanaged-short>
 public void SetTrimming(SharpDX.DirectWrite.Trimming trimmingOptions, InlineObject trimmingSign)
 {
     SetTrimming_(trimmingOptions, InlineObjectShadow.ToIntPtr(trimmingSign));
 }