Delen via


SharedStatusBar.SetColorText Method

Sets the status bar text with foreground and background colors.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
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

Parameters

  • pszText
    Type: System.String
    The text to display in the status text area.
  • crForeColor
    Type: System.UInt32
    The foreground color of the text.
  • crBackColor
    Type: System.UInt32
    The background color of the text.

Return Value

Type: System.Int32

Implements

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

.NET Framework Security

See Also

Reference

SharedStatusBar Class

Microsoft.VisualStudio.Data.Schema.Package.UI Namespace