 | ControlHelperGetStringWidth 方法 |
Sweet 开发框架
功能描述:获取字符串宽度
作 者:LT
创建日期:2019-06-27 11:54:50
任务编号:POS
命名空间:
SweetUI.Factory
程序集:
SweetUI.Factory (在 SweetUI.Factory.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static int GetStringWidth(
string strSource,
Graphics g,
Font font
)
Public Shared Function GetStringWidth (
strSource As String,
g As Graphics,
font As Font
) As Integer
static member GetStringWidth :
strSource : string *
g : Graphics *
font : Font -> int
参数
- strSource
- 类型:SystemString
strSource - g
- 类型:System.DrawingGraphics
g - font
- 类型:System.DrawingFont
font
返回值
类型:
Int32返回值
参见