HeaderPane
Main
Hide
Share Link
Print

ForeColor Property, SftTree Object

Defines the default text color used to draw items that are not selected.

Deprecated - Provided for compatibility with earlier versions only - Use Items.ForeColor instead

Syntax

Get

C#System.Drawing.Color Clr = object.ForeColor;
VB.NETClr = object.ForeColor As System.Drawing.Color
C++OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();
CHRESULT object->get_ForeColor(OLE_COLOR* Clr);
VBClr = object.ForeColor As OLE_COLOR

Put

C#System.Drawing.Color object.ForeColor = Clr;
VB.NETobject.ForeColor = Clr As System.Drawing.Color
C++OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);
CHRESULT object->put_ForeColor(OLE_COLOR Clr);
VBobject.ForeColor = Clr As OLE_COLOR

object

A SftTree object.

Clr

Defines the default text color used to draw items that are not selected. For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.ForeColor instead

The ForeColor property defines the default text color used to draw items that are not selected.

Columns can override the default foreground color using the Column.ForeColor property. Cells can override the default foreground color using the Cell.ForeColor property. If an item is disabled (Item.Enabled property), the Items.GrayedColor property is used instead of the ForeColor property. If a selected item uses a selection style (Items.SelectStyle property) that uses the Items.SelectForeColor property for only portions of the item, the ForeColor property is used for the remainder of the item.

See Also SftTree Object | Object Hierarchy


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