使用前景色和背景色设置状态栏文本。
命名空间:  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
参数
- possibleOwner
 类型:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
 状态栏的所有者。如果不是所有者,则不会发生任何操作。
- text
 类型:System.String
 要在状态文本区域中显示的文本。
- foreColor
 类型:System.UInt32
 文本的前景色。
- backColor
 类型:System.UInt32
 文本的背景色。
返回值
类型:System.Int32
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。