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
參數
- possibleOwner
型別:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
狀態列的擁有者。如果不是擁有者,就不會進行任何作業。
- text
型別:System.String
要顯示在狀態文字區域中的文字。
- foreColor
型別:System.UInt32
文字的前景色彩。
- backColor
型別:System.UInt32
文字的背景色彩。
傳回值
型別:System.Int32
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。