Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

Colors Sample (C#)

This sample illustrates working with colors.

This is not an executable sample, so a complete project is not provided. These statements are intended to show the syntax used.

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;
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;
axSftDirectory1.SelectBackColor = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectForeColor = SystemColors.HighlightText;
axSftDirectory1.SelectForeColor = Color.White;
axSftDirectory1.SelectForeColor = OLECvt.ToColor(0x0ffffff);
axSftDirectory1.SelectBackColorNoFocus = SystemColors.Highlight;
axSftDirectory1.SelectBackColorNoFocus = Color.Red;
axSftDirectory1.SelectBackColorNoFocus = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectForeColorNoFocus = SystemColors.HighlightText;
axSftDirectory1.SelectForeColorNoFocus = Color.White;
axSftDirectory1.SelectForeColorNoFocus = OLECvt.ToColor(0x0ffffff);
axSftDirectory1.get_ColumnEntry(0).BackColor = OLECvt.ToOleColor(SystemColors.Highlight);
axSftDirectory1.get_ColumnEntry(0).ForeColor = OLECvt.ToOleColor(SystemColors.HighlightText);
axSftDirectory1.get_ColumnEntry(0).SelectBackColor = OLECvt.ToOleColor(Color.White);
axSftDirectory1.get_ColumnEntry(0).SelectForeColor = 0x000000;
axSftDirectory1.CurrentFolder.BackColor = OLECvt.ToOleColor(SystemColors.Control);
axSftDirectory1.CurrentFolder.ForeColor = OLECvt.ToOleColor(Color.Black);
axSftDirectory1.CurrentFolder.ForeColor = 0x000000;
axSftDirectory1.Headers.BackColor = OLECvt.ToOleColor(SystemColors.Highlight);
axSftDirectory1.Headers.ForeColor = OLECvt.ToOleColor(Color.Black);
axSftDirectory1.Headers.GrayedColor = OLECvt.ToOleColor(Color.Gray);
axSftDirectory1.Headers.DarkEdgeColor = OLECvt.ToOleColor(Color.Gray);
axSftDirectory1.Headers.LightEdgeColor = 0x0000ff;

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