共用方式為


ISharedStatusBar.SetColorText 方法

設定狀態列文字與背景和前景色彩。

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

語法

'宣告
Function SetColorText ( _
    possibleOwner As SharedStatusBarOwner, _
    text As String, _
    foreColor As UInteger, _
    backColor As UInteger _
) As Integer
int SetColorText(
    SharedStatusBarOwner possibleOwner,
    string text,
    uint foreColor,
    uint backColor
)
int SetColorText(
    SharedStatusBarOwner^ possibleOwner, 
    String^ text, 
    unsigned int foreColor, 
    unsigned int backColor
)
abstract SetColorText : 
        possibleOwner:SharedStatusBarOwner * 
        text:string * 
        foreColor:uint32 * 
        backColor:uint32 -> int 
function SetColorText(
    possibleOwner : SharedStatusBarOwner, 
    text : String, 
    foreColor : uint, 
    backColor : uint
) : int

參數

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

傳回值

型別:System.Int32

.NET Framework 安全性

請參閱

參考

ISharedStatusBar 介面

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