SharedStatusBar.SetColorText 方法

使用前景色和背景色设置状态栏文本。

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.UI
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
Public Function SetColorText ( _
    possibleOwner As SharedStatusBarOwner, _
    pszText As String, _
    crForeColor As UInteger, _
    crBackColor As UInteger _
) As Integer
public int SetColorText(
    SharedStatusBarOwner possibleOwner,
    string pszText,
    uint crForeColor,
    uint crBackColor
)
public:
virtual int SetColorText(
    SharedStatusBarOwner^ possibleOwner, 
    String^ pszText, 
    unsigned int crForeColor, 
    unsigned int crBackColor
) sealed
abstract SetColorText : 
        possibleOwner:SharedStatusBarOwner * 
        pszText:string * 
        crForeColor:uint32 * 
        crBackColor:uint32 -> int 
override SetColorText : 
        possibleOwner:SharedStatusBarOwner * 
        pszText:string * 
        crForeColor:uint32 * 
        crBackColor:uint32 -> int 
public final function SetColorText(
    possibleOwner : SharedStatusBarOwner, 
    pszText : String, 
    crForeColor : uint, 
    crBackColor : uint
) : int

参数

  • pszText
    类型:System.String
    要在状态文本区域中显示的文本。

返回值

类型:System.Int32

实现

ISharedStatusBar.SetColorText(SharedStatusBarOwner, String, UInt32, UInt32)

.NET Framework 安全性

请参见

参考

SharedStatusBar 类

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