[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.InlineObjectNative

InlineObjectNative Class

IDWriteInlineObject

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

Constructors

Name Description
InlineObjectNative(IntPtr)

Initializes a new instance of the InlineObjectNative class.

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.

Operators

Name Description
explicit operator InlineObjectNative(IntPtr)

Performs an explicit conversion from IntPtr to InlineObjectNative.