 | GraphicsExDrawString 方法 (Graphics, String, Font, Brush, RectangleF, StringFormat, Single) |
Sweet 开发框架
绘制根据矩形旋转文本
命名空间:
SweetUI
程序集:
SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static void DrawString(
this Graphics g,
string text,
Font font,
Brush brush,
RectangleF rect,
StringFormat format,
float angle
)
<ExtensionAttribute>
Public Shared Sub DrawString (
g As Graphics,
text As String,
font As Font,
brush As Brush,
rect As RectangleF,
format As StringFormat,
angle As Single
)
[<ExtensionAttribute>]
static member DrawString :
g : Graphics *
text : string *
font : Font *
brush : Brush *
rect : RectangleF *
format : StringFormat *
angle : float32 -> unit
参数
- g
- 类型:System.DrawingGraphics
Graphics - text
- 类型:SystemString
文本 - font
- 类型:System.DrawingFont
字体 - brush
- 类型:System.DrawingBrush
填充 - rect
- 类型:System.DrawingRectangleF
局部矩形 - format
- 类型:System.DrawingStringFormat
布局方式 - angle
- 类型:SystemSingle
角度
备注
在 Visual Basic 和 C# 中,这个方法可以当成为类型
Graphics 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考
扩展方法 (Visual Basic) 或
扩展方法 (C# 编程指南) 获取更多信息。
参见