Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.ForeColorHidden Property

Defines the foreground color of hidden files/folders.

Syntax

Get

VB.NETClr = object.ForeColorHidden As System.Drawing.Color
VBClr = object.ForeColorHidden As OLE_COLOR
C#.NETSystem.Drawing.Color Clr = object.ForeColorHidden;
VC++OLE_COLOR Clr = object->ForeColorHidden;
OLE_COLOR Clr = object->GetForeColorHidden();
CHRESULT object->get_ForeColorHidden(OLE_COLOR* Clr);

Put

VB.NETobject.ForeColorHidden = Clr As System.Drawing.Color
VBobject.ForeColorHidden = Clr As OLE_COLOR
C#.NETSystem.Drawing.Color object.ForeColorHidden = Clr;
VC++OLE_COLOR object->ForeColorHidden = Clr;
void object->PutForeColorHidden(OLE_COLOR Clr);
CHRESULT object->put_ForeColorHidden(OLE_COLOR Clr);

object

A SftDirectory object.

Clr

Defines the foreground color of hidden files/folders.

Comments

The ForeColorHidden property defines the foreground color of hidden files/folders.

If a file/folder is hidden, the foreground color defined using the ForeColorHidden property is used to display the file/folder's text. The Folder.ForeColor property overrides a file/folder's foreground color.

The ShowHiddenFolders property can be used to control the inclusion of hidden files/folders in the list of displayed files/folders.

Examples

VB.NET

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
AxSftDirectory1.ForeColorEncrypted = Color.Red
AxSftDirectory1.ForeColorEncrypted = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorHidden = SystemColors.Highlight
AxSftDirectory1.ForeColorHidden = Color.Red
AxSftDirectory1.ForeColorHidden = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorReadOnly = SystemColors.Highlight
AxSftDirectory1.ForeColorReadOnly = Color.Red
AxSftDirectory1.ForeColorReadOnly = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectBackColor = SystemColors.Highlight
AxSftDirectory1.SelectBackColor = Color.Red

VB6

SftDirectory1.ForeColorArchiveReady = vbRed
SftDirectory1.ForeColorArchiveReady = &HFF&
SftDirectory1.ForeColorCompressed = vbHighlight
SftDirectory1.ForeColorCompressed = vbRed
SftDirectory1.ForeColorCompressed = &HFF&
SftDirectory1.ForeColorEncrypted = vbHighlight
SftDirectory1.ForeColorEncrypted = vbRed
SftDirectory1.ForeColorEncrypted = &HFF&
SftDirectory1.ForeColorHidden = vbHighlight
SftDirectory1.ForeColorHidden = vbRed
SftDirectory1.ForeColorHidden = &HFF&
SftDirectory1.ForeColorReadOnly = vbHighlight
SftDirectory1.ForeColorReadOnly = vbRed
SftDirectory1.ForeColorReadOnly = &HFF&
SftDirectory1.SelectBackColor = vbHighlight
SftDirectory1.SelectForeColor = vbHighlightText

C#

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;
axSftDirectory1.ForeColorEncrypted = Color.Red;
axSftDirectory1.ForeColorEncrypted = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorHidden = SystemColors.Highlight;
axSftDirectory1.ForeColorHidden = Color.Red;
axSftDirectory1.ForeColorHidden = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorReadOnly = SystemColors.Highlight;
axSftDirectory1.ForeColorReadOnly = Color.Red;
axSftDirectory1.ForeColorReadOnly = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectBackColor = SystemColors.Highlight;
axSftDirectory1.SelectBackColor = Color.Red;

C++

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;
vDir1->ForeColorReadOnly = RGB(0xff, 0, 0);
vDir1->SelectBackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->SelectForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->SelectBackColor = RGB(0xff, 0, 0);
vDir1->SelectForeColor = RGB(0xff, 0xff, 0xff);

See Also SftDirectory Object | Object Hierarchy


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