Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.BackColor Property

Defines the background color.

Syntax

Get

VB.NETClr = object.BackColor As System.Drawing.Color
Clr = object.CtlBackColor As System.Drawing.Color
VBClr = object.BackColor As OLE_COLOR
C#.NETSystem.Drawing.Color Clr = object.BackColor;
System.Drawing.Color Clr = object.CtlBackColor;
VC++OLE_COLOR Clr = object->BackColor;
OLE_COLOR Clr = object->GetBackColor();
CHRESULT object->get_BackColor(OLE_COLOR* Clr);

Put

VB.NETobject.BackColor = Clr As System.Drawing.Color
object.CtlBackColor = Clr As System.Drawing.Color
VBobject.BackColor = Clr As OLE_COLOR
C#.NETSystem.Drawing.Color object.BackColor = Clr;
System.Drawing.Color object.CtlBackColor = Clr;
VC++OLE_COLOR object->BackColor = Clr;
void object->PutBackColor(OLE_COLOR Clr);
CHRESULT object->put_BackColor(OLE_COLOR Clr);

object

A SftDirectory object.

Clr

Defines the background color.

Comments

The BackColor property defines the background color.

The background color is used throughout the control for all folders. Columns can override the background color using the Column.BackColor property. Individual folders can override the background color using the Folder.BackColor property.

The ActiveColumnBackColor property defines the background color of the active column and overrides the BackColor property.

The BackColor property does not affect the column headers (see Headers.BackColor instead).

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.