[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextRenderer1.DrawInlineObject

DrawInlineObject Method

DrawInlineObject(object, float, float, GlyphOrientationAngle, InlineObject, bool, bool, IntPtr)

IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.

Declaration
HResult DrawInlineObject(object clientDrawingContext, float originX, float originY, GlyphOrientationAngle orientationAngle, InlineObject inlineObject, bool isSideways, bool isRightToLeft, IntPtr clientDrawingEffectPtr)
Parameters
Type Name Description
object clientDrawingContext

The application-defined drawing context passed to IDWriteTextLayout::Draw.

float originX

X-coordinate at the top-left corner of the inline object.

float originY

Y-coordinate at the top-left corner of the inline object.

GlyphOrientationAngle orientationAngle

Orientation of the inline object.

InlineObject inlineObject

The application-defined inline object set using IDWriteTextFormat::SetInlineObject.

bool isSideways

A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line.

bool isRightToLeft

A Boolean flag that indicates whether the object is in a right-to-left context, hinting that the drawing may want to mirror the normal image.

IntPtr clientDrawingEffectPtr

Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of a line.

Returns
Type Description
HResult

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.