Click or drag to resize
ICanvasTextInlineObject.Draw Method
Signals to the app that it should draw the inline object.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
void Draw(
	ICanvasTextRenderer textRenderer,
	Vector2 point,
	bool isSideways,
	bool isRightToLeft,
	Object brush
)

Parameters

textRenderer
Type: Microsoft.Graphics.Canvas.Text.ICanvasTextRenderer
point
Type: System.Numerics.Vector2
isSideways
Type: System.Boolean
isRightToLeft
Type: System.Boolean
brush
Type: System.Object
Remarks

The ICanvasTextRenderer object is only passed through as non-null if the app is using a custom renderer. In this case, it is recommended that the app's implementation of Draw avoids calling DrawInlineObject, if it will lead to recursion.

An inline object's Draw method may be called whenever a text layout containing that inline object:

As such, an inline object may be implemented to draw to a drawing session, or add to a geometry, for example.

See Also