StatusBar.ShowTextUpdates 方法

決定 StatusBar 是否顯示文字更新。

命名空間:  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
    型別:System.Boolean
    必要項。表示是否顯示文字更新。

傳回值

型別:System.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 命名空間