[]
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.
public void Draw(object clientDrawingContext, TextRenderer renderer, float originX, float originY, bool isSideways, bool isRightToLeft, IntPtr clientDrawingEffectPtr)
Type | Name | Description |
---|---|---|
object | clientDrawingContext | The drawing context passed to C1.Util.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single). This parameter may be NULL. |
TextRenderer | renderer | The same renderer passed to C1.Util.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single) as the object's containing parent. This is useful if the inline object is recursive such as a nested layout. |
float | originX | The x-coordinate at the upper-left corner of the inline object. |
float | originY | The y-coordinate at the upper-left corner of the inline object. |
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 and should be drawn flipped. |
IntPtr | clientDrawingEffectPtr | The drawing effect set in TextLayout.SetDrawingEffect. Usually this effect is a foreground brush that is used in glyph drawing. |