CanvasExtensions.DrawString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.