/// <summary> /// Creates an inline object for trimming, using an ellipsis as the omission sign. /// </summary> /// <remarks> /// The ellipsis will be created using the current settings of the format, including base font, style, and any effects. Alternate omission signs can be created by the application by implementing <see cref="SharpDX.DirectWrite.InlineObject"/>. /// </remarks> /// <param name="factory">a <see cref="Factory"/></param> /// <param name="textFormat">A text format object, created with {{CreateTextFormat}}, used for text layout. </param> /// <unmanaged>HRESULT IDWriteFactory::CreateEllipsisTrimmingSign([None] IDWriteTextFormat* textFormat,[Out] IDWriteInlineObject** trimmingSign)</unmanaged> public EllipsisTrimming(Factory factory, TextFormat textFormat) : this(IntPtr.Zero) { factory.CreateEllipsisTrimmingSign(textFormat, this); }