次の方法で共有


SelectedItemForeColor Property

Specifies the foreground color of the text of a selected item in a ComboBox or ListBoxor cell (TextBox only) in a Grid control. SelectedItemForeColor is related to the HighlightForeColor and HighlightBackColor properties in that you need to control the color of the selected cell in a grid row. Read/write at design and run time. There are two verions of the syntax.

Control.SelectedItemForeColor [= nColor ]

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

Parameters

  • nColor
    Numeric data type. SelectedItemForeColor specifies an integer representing a color value. Visual FoxPro derives the default color setting from the Windows operating system font color setting for Selected Items. For information about valid color values, see BackColor, ForeColor Properties.

Remarks

Applies To: ComboBox Control | ListBox Control | Grid Control

For more information about the Grid SelectedItemForeColor and GridSelectedItemBackColor properties, see SelectedItemBackColor Property.

See Also

Reference

HighlightStyle Property

TextBox Control (Visual FoxPro)

ResetToDefault Method

Selected Property

ItemBackColor, ItemForeColor Properties

RGB( ) Function

Other Resources

Properties (Visual FoxPro)