 | UIMessageTipShow 方法 (String, TipStyle, Int32, NullableBoolean, NullablePoint, Boolean) |
Sweet 开发框架
显示消息
命名空间:
SweetUI
程序集:
SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static void Show(
string text,
TipStyle style = null,
int delay = -1,
bool? floating = null,
Point? point = null,
bool centerByPoint = false
)
Public Shared Sub Show (
text As String,
Optional style As TipStyle = Nothing,
Optional delay As Integer = -1,
Optional floating As Boolean? = Nothing,
Optional point As Point? = Nothing,
Optional centerByPoint As Boolean = false
)
static member Show :
text : string *
?style : TipStyle *
?delay : int *
?floating : Nullable<bool> *
?point : Nullable<Point> *
?centerByPoint : bool
(* Defaults:
let _style = defaultArg style null
let _delay = defaultArg delay -1
let _floating = defaultArg floating null
let _point = defaultArg point null
let _centerByPoint = defaultArg centerByPoint false
*)
-> unit
参数
- text
- 类型:SystemString
消息文本 - style (Optional)
- 类型:SweetUITipStyle
消息样式。不指定则使用默认样式 - delay (Optional)
- 类型:SystemInt32
消息停留时长(ms)。为负时使用全局时长 - floating (Optional)
- 类型:SystemNullableBoolean
是否漂浮,不指定则使用全局设置 - point (Optional)
- 类型:SystemNullablePoint
消息窗显示位置。不指定则智能判定,当由工具栏项(ToolStripItem)弹出时,请指定该参数或使用接收控件的重载 - centerByPoint (Optional)
- 类型:SystemBoolean
是否以point参数为中心进行呈现。为false则是在其附近呈现
参见