Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.ForeColor Property

Defines the foreground color.

Syntax

Get

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

Put

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

object

A SftDirectory object.

Clr

Defines the foreground color.

Comments

The ForeColor property defines the foreground color.

All folders use the defined foreground color. Individual folders can override the foreground color using the Folder.ForeColor property.

Examples

VB.NET

AxSftDirectory1.ActiveColumnBackColor = SystemColors.Highlight
AxSftDirectory1.ActiveColumnBackColor = Color.Red
AxSftDirectory1.ActiveColumnBackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.BackColor = SystemColors.Highlight
AxSftDirectory1.ForeColor = SystemColors.HighlightText
AxSftDirectory1.BackColor = Color.Red
AxSftDirectory1.ForeColor = Color.White
AxSftDirectory1.BackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColor = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.ForeColorArchiveReady = SystemColors.Highlight
AxSftDirectory1.ForeColorArchiveReady = Color.Red
AxSftDirectory1.ForeColorArchiveReady = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorCompressed = SystemColors.Highlight
AxSftDirectory1.ForeColorCompressed = Color.Red
AxSftDirectory1.ForeColorCompressed = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorEncrypted = SystemColors.Highlight

VB6

SftDirectory1.ActiveColumnBackColor = vbHighlight
SftDirectory1.ActiveColumnBackColor = vbRed
SftDirectory1.ActiveColumnBackColor = &HFF&
SftDirectory1.BackColor = vbHighlight
SftDirectory1.ForeColor = vbHighlightText
SftDirectory1.BackColor = vbRed
SftDirectory1.ForeColor = vbWhite
SftDirectory1.BackColor = &HFF
SftDirectory1.ForeColor = &HFFFFFF
SftDirectory1.ForeColorArchiveReady = vbHighlight
SftDirectory1.ForeColorArchiveReady = vbRed
SftDirectory1.ForeColorArchiveReady = &HFF&
SftDirectory1.ForeColorCompressed = vbHighlight
SftDirectory1.ForeColorCompressed = vbRed
SftDirectory1.ForeColorCompressed = &HFF&
SftDirectory1.ForeColorEncrypted = vbHighlight

C#

axSftDirectory1.ActiveColumnBackColor = SystemColors.Highlight;
axSftDirectory1.ActiveColumnBackColor = Color.Red;
axSftDirectory1.ActiveColumnBackColor = OLECvt.ToColor(0x0000FF);
axSftDirectory1.BackColor = SystemColors.Highlight;
axSftDirectory1.ForeColor = SystemColors.HighlightText;
axSftDirectory1.BackColor = Color.Red;
axSftDirectory1.ForeColor = Color.White;
axSftDirectory1.BackColor = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColor = OLECvt.ToColor(0x0ffffff);
axSftDirectory1.ForeColorArchiveReady = SystemColors.Highlight;
axSftDirectory1.ForeColorArchiveReady = Color.Red;
axSftDirectory1.ForeColorArchiveReady = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorCompressed = SystemColors.Highlight;
axSftDirectory1.ForeColorCompressed = Color.Red;
axSftDirectory1.ForeColorCompressed = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorEncrypted = SystemColors.Highlight;

C++

ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown();
vDir1->ActiveColumnBackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ActiveColumnBackColor = RGB(0xff, 0, 0);
vDir1->BackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->BackColor = RGB(0xff, 0, 0);
vDir1->ForeColor = RGB(0xff, 0xff, 0xff);
vDir1->ForeColorArchiveReady = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorArchiveReady = RGB(0xff, 0, 0);
vDir1->ForeColorCompressed = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorCompressed = RGB(0xff, 0, 0);
vDir1->ForeColorEncrypted = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorEncrypted = RGB(0xff, 0, 0);
vDir1->ForeColorHidden = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorHidden = RGB(0xff, 0, 0);
vDir1->ForeColorReadOnly = 0x80000000L | COLOR_HIGHLIGHT;

See Also SftDirectory Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.