 | UIMessageTipShowOk 方法 (Component, String, Int32, NullableBoolean, NullableBoolean) |
Sweet 开发框架
在指定控件附近显示良好消息
命名空间:
SweetUI
程序集:
SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static void ShowOk(
Component controlOrItem,
string text = null,
int delay = -1,
bool? floating = null,
bool? centerInControl = null
)
Public Shared Sub ShowOk (
controlOrItem As Component,
Optional text As String = Nothing,
Optional delay As Integer = -1,
Optional floating As Boolean? = Nothing,
Optional centerInControl As Boolean? = Nothing
)
static member ShowOk :
controlOrItem : Component *
?text : string *
?delay : int *
?floating : Nullable<bool> *
?centerInControl : Nullable<bool>
(* Defaults:
let _text = defaultArg text null
let _delay = defaultArg delay -1
let _floating = defaultArg floating null
let _centerInControl = defaultArg centerInControl null
*)
-> unit
参数
- controlOrItem
- 类型:System.ComponentModelComponent
控件或工具栏项 - text (Optional)
- 类型:SystemString
消息文本 - delay (Optional)
- 类型:SystemInt32
消息停留时长(ms)。为负时使用全局时长 - floating (Optional)
- 类型:SystemNullableBoolean
是否漂浮,不指定则使用全局设置 - centerInControl (Optional)
- 类型:SystemNullableBoolean
是否在控件中央显示,不指定则自动判断
参见