HeaderPane
Main
Hide
Share Link
Print

SelectForeColorNoFocus Property, SftTreeItems Object

Defines the text color used to draw selected items when the control doesn't have the input focus.

Syntax

Get

C#uint Clr = object.SelectForeColorNoFocus;
VB.NETClr = object.SelectForeColorNoFocus As UInteger
C++OLE_COLOR Clr = object->SelectForeColorNoFocus;
OLE_COLOR Clr = object->GetSelectForeColorNoFocus();
CHRESULT object->get_SelectForeColorNoFocus(OLE_COLOR* Clr);
VBClr = object.SelectForeColorNoFocus As OLE_COLOR

Put

C#uint object.SelectForeColorNoFocus = Clr;
VB.NETobject.SelectForeColorNoFocus = Clr As UInteger
C++OLE_COLOR object->SelectForeColorNoFocus = Clr;
void object->PutSelectForeColorNoFocus(OLE_COLOR Clr);
CHRESULT object->put_SelectForeColorNoFocus(OLE_COLOR Clr);
VBobject.SelectForeColorNoFocus = Clr As OLE_COLOR

object

A SftTreeItems object.

Clr

Defines the text color used to draw selected items when the control doesn't have the input focus. For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

The SelectForeColorNoFocus property defines the text color used to draw selected items when the control doesn't have the input focus.

This property is only used if the Items.NoFocusStyle property is set to noFocusSftTreeKeepSel (0). Columns can override the default foreground color using the Column.SelectForeColor property. Cells can override the foreground color using the Cell.SelectForeColor property. If an item is disabled (Item.Enabled property), the Items.GrayedColor property is used instead of the SelectForeColorNoFocus property.

The SelectForeColorNoFocus only applies if the Items.NoFocusStyle property is set to noFocusSftTreeKeepSel (0).

See Also SftTreeItems Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.