点击或拖拽改变大小

SkiaDrawingContextDrawString 方法

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <summary> 文档]

命名空间:  CPF.Skia
程序集:  CPF.Skia (在 CPF.Skia.dll 中) 版本:0.8.8.3
语法
C#
public override void DrawString(
	 in Point location,
	Brush fillBrush,
	string text,
	 in Font font,
	 in TextAlignment textAlignment = 0,
	 in float maxWidth = 3.402823E+38f,
	 in TextDecoration decoration = null,
	 in float maxHeight = 3.402823E+38f,
	 in TextTrimming textTrimming = 0,
	 in Stroke stroke = null,
	Brush strokeBrush = null
)

参数

location
类型:CPF.DrawingPointInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="location"/> 文档]

fillBrush
类型:CPF.DrawingBrush

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="fillBrush"/> 文档]

text
类型:SystemString

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="text"/> 文档]

font
类型:CPF.DrawingFontInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="font"/> 文档]

textAlignment (Optional)
类型:CPF.DrawingTextAlignmentInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="textAlignment"/> 文档]

maxWidth (Optional)
类型:SystemSingleInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="maxWidth"/> 文档]

decoration (Optional)
类型:CPF.DrawingTextDecorationInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="decoration"/> 文档]

maxHeight (Optional)
类型:SystemSingleInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="maxHeight"/> 文档]

textTrimming (Optional)
类型:CPF.DrawingTextTrimmingInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="textTrimming"/> 文档]

stroke (Optional)
类型:CPF.DrawingStrokeInAttribute

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="stroke"/> 文档]

strokeBrush (Optional)
类型:CPF.DrawingBrush

[缺少 "M:CPF.Skia.SkiaDrawingContext.DrawString(CPF.Drawing.Point@,CPF.Drawing.Brush,System.String,CPF.Drawing.Font@,CPF.Drawing.TextAlignment@,System.Single@,CPF.Drawing.TextDecoration@,System.Single@,CPF.Drawing.TextTrimming@,CPF.Drawing.Stroke@,CPF.Drawing.Brush)" 的 <param name="strokeBrush"/> 文档]

参见