IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.
'Declaration
Public Overloads Overridable Function DrawInlineObject( _
ByVal As System.Object, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As GlyphOrientationAngle, _
ByVal As InlineObject, _
ByVal As System.Boolean, _
ByVal As System.Boolean, _
ByVal As System.IntPtr _
) As HResult
public virtual HResult DrawInlineObject(
System.object ,
System.float ,
System.float ,
GlyphOrientationAngle ,
InlineObject ,
System.bool ,
System.bool ,
System.IntPtr
)
Parameters
- clientDrawingContext
- The application-defined drawing context passed to IDWriteTextLayout::Draw.
- originX
- X-coordinate at the top-left corner of the inline object.
- originY
- Y-coordinate at the top-left corner of the inline object.
- orientationAngle
- Orientation of the inline object.
- inlineObject
- The application-defined inline object set using IDWriteTextFormat::SetInlineObject.
- isSideways
- A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line.
- 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.
- 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.
Return Value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.