StatusBar.ShowTextUpdates(Boolean) 方法

定义

确定是否 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

必需。 指示是否显示文本更新。

返回

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 方法非常有用,例如,在运行不希望在操作中显示文本(如搜索和替换)的向导时。

适用于