 | ControlHelperGetSubString 方法 |
Sweet 开发框架
功能描述:根据控件宽度截取字符串
作 者:LT
创建日期:2019-06-27 10:49:10
任务编号:POS
命名空间:
SweetUI.Factory
程序集:
SweetUI.Factory (在 SweetUI.Factory.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static string GetSubString(
string strSource,
float fltControlWidth,
Graphics g,
Font font
)
Public Shared Function GetSubString (
strSource As String,
fltControlWidth As Single,
g As Graphics,
font As Font
) As String
static member GetSubString :
strSource : string *
fltControlWidth : float32 *
g : Graphics *
font : Font -> string
参数
- strSource
- 类型:SystemString
字符串 - fltControlWidth
- 类型:SystemSingle
控件宽度 - g
- 类型:System.DrawingGraphics
Graphics - font
- 类型:System.DrawingFont
字体
返回值
类型:
String截取后的字符串
参见