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