SkiaCanvas.DrawString 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DrawString(String, Single, Single, Single, Single, HorizontalAlignment, VerticalAlignment, TextFlow, Single) | |
DrawString(String, Single, Single, HorizontalAlignment) |
DrawString(String, Single, Single, Single, Single, HorizontalAlignment, VerticalAlignment, TextFlow, Single)
public override void DrawString (string value, float x, float y, float width, float height, Microsoft.Maui.Graphics.HorizontalAlignment horizAlignment, Microsoft.Maui.Graphics.VerticalAlignment vertAlignment, Microsoft.Maui.Graphics.TextFlow textFlow = Microsoft.Maui.Graphics.TextFlow.ClipBounds, float lineSpacingAdjustment = 0);
override this.DrawString : string * single * single * single * single * Microsoft.Maui.Graphics.HorizontalAlignment * Microsoft.Maui.Graphics.VerticalAlignment * Microsoft.Maui.Graphics.TextFlow * single -> unit
Public Overrides Sub DrawString (value As String, x As Single, y As Single, width As Single, height As Single, horizAlignment As HorizontalAlignment, vertAlignment As VerticalAlignment, Optional textFlow As TextFlow = Microsoft.Maui.Graphics.TextFlow.ClipBounds, Optional lineSpacingAdjustment As Single = 0)
參數
- value
- String
- x
- Single
- y
- Single
- width
- Single
- height
- Single
- horizAlignment
- HorizontalAlignment
- vertAlignment
- VerticalAlignment
- textFlow
- TextFlow
- lineSpacingAdjustment
- Single
適用於
DrawString(String, Single, Single, HorizontalAlignment)
public:
override void DrawString(System::String ^ value, float x, float y, Microsoft::Maui::Graphics::HorizontalAlignment horizAlignment);
public override void DrawString (string value, float x, float y, Microsoft.Maui.Graphics.HorizontalAlignment horizAlignment);
override this.DrawString : string * single * single * Microsoft.Maui.Graphics.HorizontalAlignment -> unit
Public Overrides Sub DrawString (value As String, x As Single, y As Single, horizAlignment As HorizontalAlignment)
參數
- value
- String
- x
- Single
- y
- Single
- horizAlignment
- HorizontalAlignment