SftTree/OCX 7.0

SftTreeItems.ForeColor Property

Softel vdm, Inc.

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

Syntax       

Get

VB.NET

Clr = object.ForeColor  As UIntegerLanguage-specific information

VB

Clr = object.ForeColor  As OLE_COLOR

C#.NET

uintLanguage-specific information Clr = object.ForeColor;

VC++

OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();

C

HRESULT object->get_ForeColor(OLE_COLOR* Clr);

Delphi

Clr := object.ForeColor  : Cardinal;

Put

VB.NET

object.ForeColor = Clr  As UIntegerLanguage-specific information

VB

object.ForeColor = Clr  As OLE_COLOR

C#.NET

uintLanguage-specific information object.ForeColor = Clr;

VC++

OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);

C

HRESULT object->put_ForeColor(OLE_COLOR Clr);

Delphi

object.ForeColor := Clr  : Cardinal;

object

A SftTreeItems 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

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  SftTreeItems Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com