StatusBar.ShowTextUpdates(Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定是否 StatusBar 显示文本更新。
public:
bool ShowTextUpdates(bool TextUpdates);
public:
bool ShowTextUpdates(bool TextUpdates);
bool ShowTextUpdates(bool TextUpdates);
[System.Runtime.InteropServices.DispId(10)]
public bool ShowTextUpdates (bool TextUpdates);
[<System.Runtime.InteropServices.DispId(10)>]
abstract member ShowTextUpdates : bool -> bool
Public Function ShowTextUpdates (TextUpdates As Boolean) As Boolean
参数
- TextUpdates
- Boolean
必需。 指示是否显示文本更新。
返回
指示是否 StatusBar 显示文本更新的布尔值。
- 属性
示例
Sub ShowTextUpdatesExample()
Dim SBar As StatusBar
SBar = DTE.StatusBar
SBar.Text = "Hello world."
MsgBox("Turning off text updates...")
SBar.ShowTextUpdates(False)
SBar.Text = "Goodbye world."
End Sub
注解
此 ShowTextUpdates 方法非常有用,例如,在运行不希望在操作中显示文本(如搜索和替换)的向导时。