Share via


ICanvas.DrawText(IAttributedText, Single, Single, Single, Single) Method

Definition

Draws attributed text within a bounding box onto the canvas.

public:
 void DrawText(Microsoft::Maui::Graphics::Text::IAttributedText ^ value, float x, float y, float width, float height);
public void DrawText (Microsoft.Maui.Graphics.Text.IAttributedText value, float x, float y, float width, float height);
abstract member DrawText : Microsoft.Maui.Graphics.Text.IAttributedText * single * single * single * single -> unit
Public Sub DrawText (value As IAttributedText, x As Single, y As Single, width As Single, height As Single)

Parameters

value
IAttributedText

Attributed text to be displayed.

x
Single

Starting x coordinate of the bounding box.

y
Single

Starting y coordinate of the bounding box.

width
Single

Width of the bounding box.

height
Single

Height of the bounding box.

Applies to