CanvasExtensions.DrawString Method

Definition

Overloads

DrawString(ICanvas, String, Rect, HorizontalAlignment, VerticalAlignment, TextFlow, Single)
DrawString(ICanvas, String, RectF, HorizontalAlignment, VerticalAlignment, TextFlow, Single)

DrawString(ICanvas, String, Rect, HorizontalAlignment, VerticalAlignment, TextFlow, Single)

Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs
public static void DrawString (this Microsoft.Maui.Graphics.ICanvas target, string value, Microsoft.Maui.Graphics.Rect bounds, Microsoft.Maui.Graphics.HorizontalAlignment horizontalAlignment, Microsoft.Maui.Graphics.VerticalAlignment verticalAlignment, Microsoft.Maui.Graphics.TextFlow textFlow = Microsoft.Maui.Graphics.TextFlow.ClipBounds, float lineSpacingAdjustment = 0);
static member DrawString : Microsoft.Maui.Graphics.ICanvas * string * Microsoft.Maui.Graphics.Rect * Microsoft.Maui.Graphics.HorizontalAlignment * Microsoft.Maui.Graphics.VerticalAlignment * Microsoft.Maui.Graphics.TextFlow * single -> unit
<Extension()>
Public Sub DrawString (target As ICanvas, value As String, bounds As Rect, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, Optional textFlow As TextFlow = Microsoft.Maui.Graphics.TextFlow.ClipBounds, Optional lineSpacingAdjustment As Single = 0)

Parameters

target
ICanvas
value
String
bounds
Rect
horizontalAlignment
HorizontalAlignment
verticalAlignment
VerticalAlignment
textFlow
TextFlow
lineSpacingAdjustment
Single

Applies to

DrawString(ICanvas, String, RectF, HorizontalAlignment, VerticalAlignment, TextFlow, Single)

Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs
public static void DrawString (this Microsoft.Maui.Graphics.ICanvas target, string value, Microsoft.Maui.Graphics.RectF bounds, Microsoft.Maui.Graphics.HorizontalAlignment horizontalAlignment, Microsoft.Maui.Graphics.VerticalAlignment verticalAlignment, Microsoft.Maui.Graphics.TextFlow textFlow = Microsoft.Maui.Graphics.TextFlow.ClipBounds, float lineSpacingAdjustment = 0);
static member DrawString : Microsoft.Maui.Graphics.ICanvas * string * Microsoft.Maui.Graphics.RectF * Microsoft.Maui.Graphics.HorizontalAlignment * Microsoft.Maui.Graphics.VerticalAlignment * Microsoft.Maui.Graphics.TextFlow * single -> unit
<Extension()>
Public Sub DrawString (target As ICanvas, value As String, bounds As RectF, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, Optional textFlow As TextFlow = Microsoft.Maui.Graphics.TextFlow.ClipBounds, Optional lineSpacingAdjustment As Single = 0)

Parameters

target
ICanvas
value
String
bounds
RectF
horizontalAlignment
HorizontalAlignment
verticalAlignment
VerticalAlignment
textFlow
TextFlow
lineSpacingAdjustment
Single

Applies to