Compartir a través de


SelectedBackColor, SelectedForeColor Properties

Specifies the background or foreground color for the selected text. Available at design time and run time. There are two versions of the syntax for each of these two properties.

Control.SelectedBackColor[ = nColor]

Control.SelectedBackColor = RGB(nRedValue, nGreenValue, nBlueValue)

Control.SelectedForeColor[ = nColor]

Control.SelectedForeColor = RGB(nRedValue, nGreenValue, nBlueValue)

Return Value

  • nColor
    Specifies a single number to represent the color.

    Note

    In the Properties window, you can double-click any of the color properties to display the Color dialog box. You can choose or define colors from this dialog box. The red, green, and blue intensities that correspond to the color you choose become the settings for these properties after you close the Color dialog box.

Remarks

Applies To: ComboBox Control | EditBox Control | Spinner Control | TextBox Control

See Also

Reference

BackColor, ForeColor Properties

RGB( ) Function

SelectedItemBackColor Property

SelectedItemForeColor Property

Other Resources

Properties (Visual FoxPro)