Share via


StatusBar.ShowTextUpdates 方法

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
Function ShowTextUpdates ( _
    TextUpdates As Boolean _
) As Boolean
bool ShowTextUpdates(
    bool TextUpdates
)
bool ShowTextUpdates(
    bool TextUpdates
)
abstract ShowTextUpdates : 
        TextUpdates:bool -> bool
function ShowTextUpdates(
    TextUpdates : boolean
) : boolean

参数

  • TextUpdates
    类型:Boolean

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

返回值

类型:Boolean
一个指示 StatusBar 是否显示文本更新的布尔值。

备注

ShowTextUpdates 方法很有用,例如在运行“向导”时不希望“搜索和替换”这样的操作影响显示的文本。

示例

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

.NET Framework 安全性

请参阅

参考

StatusBar 接口

EnvDTE 命名空间