SftTree/OCX 7.0

SftTree.ForeColor Property

Softel vdm, Inc.

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

VB.NET

Clr = object.ForeColor  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.ForeColor  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-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  : TColor;

Put

VB.NET

object.ForeColor = Clr  As System.Drawing.ColorLanguage-specific information

VB

object.ForeColor = Clr  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-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  : TColor;

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


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