ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / InlineObject Interface / Draw Method
The drawing context passed to C1.Util.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single). This parameter may be NULL.
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.
The x-coordinate at the upper-left corner of the inline object.
The y-coordinate at the upper-left corner of the inline object.
A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line.
A Boolean flag that indicates whether the object is in a right-to-left context and should be drawn flipped.
The drawing effect set in TextLayout.SetDrawingEffect. Usually this effect is a foreground brush that is used in glyph drawing.

In This Topic
    Draw Method (InlineObject)
    In This Topic
    The application implemented rendering callback (TextRenderer.DrawInlineObject) 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.
    Syntax
    'Declaration
     
    Sub Draw( _
       ByVal clientDrawingContext As System.Object, _
       ByVal renderer As TextRenderer, _
       ByVal originX As System.Single, _
       ByVal originY As System.Single, _
       ByVal isSideways As System.Boolean, _
       ByVal isRightToLeft As System.Boolean, _
       ByVal clientDrawingEffectPtr As System.IntPtr _
    ) 
    void Draw( 
       System.object clientDrawingContext,
       TextRenderer renderer,
       System.float originX,
       System.float originY,
       System.bool isSideways,
       System.bool isRightToLeft,
       System.IntPtr clientDrawingEffectPtr
    )

    Parameters

    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.
    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.
    originX
    The x-coordinate at the upper-left corner of the inline object.
    originY
    The y-coordinate at the upper-left corner of the inline object.
    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 and should be drawn flipped.
    clientDrawingEffectPtr
    The drawing effect set in TextLayout.SetDrawingEffect. Usually this effect is a foreground brush that is used in glyph drawing.
    See Also