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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET MAUI