 | GraphicsExDrawStringRotateAtCenter 方法 (Graphics, String, Font, Brush, PointF, Single) |
Sweet 开发框架
以文字中心点为原点,旋转文字
命名空间:
SweetUI
程序集:
SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static void DrawStringRotateAtCenter(
this Graphics g,
string text,
Font font,
Brush brush,
PointF centerPoint,
float angle
)
<ExtensionAttribute>
Public Shared Sub DrawStringRotateAtCenter (
g As Graphics,
text As String,
font As Font,
brush As Brush,
centerPoint As PointF,
angle As Single
)
[<ExtensionAttribute>]
static member DrawStringRotateAtCenter :
g : Graphics *
text : string *
font : Font *
brush : Brush *
centerPoint : PointF *
angle : float32 -> unit
参数
- g
- 类型:System.DrawingGraphics
Graphics - text
- 类型:SystemString
文字 - font
- 类型:System.DrawingFont
字体 - brush
- 类型:System.DrawingBrush
笔刷 - centerPoint
- 类型:System.DrawingPointF
文字中心点 - angle
- 类型:SystemSingle
角度
备注
在 Visual Basic 和 C# 中,这个方法可以当成为类型
Graphics 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考
扩展方法 (Visual Basic) 或
扩展方法 (C# 编程指南) 获取更多信息。
参见