[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.InlineObject

InlineObject Interface

IDWriteInlineObject

Namespace: C1.Util.DX.DirectWrite
Assembly: C1.Win.C1DX.4.8.dll
Syntax
[Guid("8339FDE3-106F-47ab-8373-1C6295EB10B3")]
[Shadow(typeof(InlineObjectShadow))]
public interface InlineObject : ICallbackable, IDisposable

Properties

Name Description
Metrics

TextLayout calls this callback function to get the measurement of the inline object.

OverhangMetrics

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.

Methods

Name Description
Draw(object, TextRenderer, float, float, bool, bool, IntPtr)

The application implemented rendering callback (DrawInlineObject(object, float, float, InlineObject, bool, bool, IntPtr)) 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.

GetBreakConditions(out BreakCondition, out BreakCondition)

Layout uses this to determine the line-breaking behavior of the inline object among the text.