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