共用方式為


SharedStatusBar.SetText 方法

設定文字區域中的狀態列文字。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.UI
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Public Function SetText ( _
    possibleOwner As SharedStatusBarOwner, _
    pszText As String _
) As Boolean
public bool SetText(
    SharedStatusBarOwner possibleOwner,
    string pszText
)
public:
virtual bool SetText(
    SharedStatusBarOwner^ possibleOwner, 
    String^ pszText
) sealed
abstract SetText : 
        possibleOwner:SharedStatusBarOwner * 
        pszText:string -> bool 
override SetText : 
        possibleOwner:SharedStatusBarOwner * 
        pszText:string -> bool 
public final function SetText(
    possibleOwner : SharedStatusBarOwner, 
    pszText : String
) : boolean

參數

  • pszText
    型別:System.String
    要顯示在狀態文字區域中的文字。

傳回值

型別:System.Boolean

實作

ISharedStatusBar.SetText(SharedStatusBarOwner, String)

.NET Framework 安全性

請參閱

參考

SharedStatusBar 類別

Microsoft.VisualStudio.Data.Schema.Package.UI 命名空間