Ejemplo n.º 1
0
        private void Steel(CellStyleCollection s)
        {
            s.Clear();

            CellStyle cs = s.Normal;

            cs.BackColor    = Color.FromArgb(250, 250, 250);
            cs.Border.Width = 0;

            cs = s.Fixed;
            cs.BackgroundImage       = GetBitmapResource("Steel_Header.png");
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;
            cs.Border.Width          = 0;

            cs = s.SelectedColumnHeader;
            cs.MergeWith(s.Fixed);
            cs.BackgroundImage = GetBitmapResource("Steel_HeaderSelected.png");
            cs.Font            = new Font(cs.Font, FontStyle.Bold);

            s.SelectedRowHeader.MergeWith(cs);

            cs = s.Highlight;
            cs.Clear();
            cs.BackColor = Color.FromArgb(150, Color.LightSteelBlue);

            s.Focus.MergeWith(cs);
        }
Ejemplo n.º 2
0
        private void Glass(CellStyleCollection s)
        {
            s.Clear();

            CellStyle cs = s.Normal;

            cs.BackColor    = Color.FromArgb(250, 250, 250);
            cs.Border.Width = 0;

            cs = s.Normal;
            cs.BackgroundImage       = GetBitmapResource("Glass_Normal.png");
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;

            cs = s.Alternate;
            cs.BackgroundImage       = GetBitmapResource("Glass_Alternate.png");
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;

            cs = s.Fixed;
            cs.BackgroundImage       = GetBitmapResource("Glass_Header.png");
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;
            cs.Margins      = new System.Drawing.Printing.Margins(4, 4, 4, 2);
            cs.Border.Width = 0;

            cs = s.SelectedColumnHeader;
            cs.MergeWith(s.Fixed);
            cs.BackgroundImage = GetBitmapResource("Glass_HeaderSelected.png");

            s.SelectedRowHeader.MergeWith(cs);

            cs = s.Highlight;
            cs.BackgroundImageLayout = ImageAlignEnum.Hide;
            cs.BackColor             = Color.FromArgb(165, 200, 240);

            s.Focus.MergeWith(cs);
        }
Ejemplo n.º 3
0
        private void Shadow(CellStyleCollection s)
        {
            s.Clear();

            Color color = SystemColors.ActiveBorder;

            s.Normal.Border.Color = Color.FromArgb(80, color);

            CellStyle cs = s.Fixed;

            cs.BackColor    = Color.FromArgb(180, color);
            cs.Border.Color = Color.FromArgb(220, color);

            cs = s.SelectedColumnHeader;
            cs.BackgroundImage       = BuildStyleBackground(color, s.Normal.BackColor, 90);
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;

            cs = s.SelectedRowHeader;
            cs.Clear();
            cs.MergeWith(s.SelectedColumnHeader);
            cs.BackgroundImage = BuildStyleBackground(color, s.Normal.BackColor, 0);

            cs = s.Highlight;
            cs.Clear();
            cs.BackColor = Color.FromArgb(150, s.Fixed.BackColor);
        }
Ejemplo n.º 4
0
        private void ApplyNotebookStyles(CellStyleCollection s)
        {
            s.Clear();

            CellStyle cs = s.Normal;

            cs.ForeColor        = Color.SlateGray;
            cs.BackColor        = Color.White;
            cs.Border.Direction = BorderDirEnum.Horizontal;
            cs.Border.Color     = Color.FromArgb(196, 228, 223);
            cs.Font             = new Font(s.Normal.Font, FontStyle.Italic);

            cs = s.Fixed;
            cs.BackgroundImage       = notebook.Images["notebook_side.png"];
            cs.BackgroundImageLayout = ImageAlignEnum.Stretch;
            cs.Border.Direction      = BorderDirEnum.Vertical;
            cs.Border.Color          = Color.FromArgb(138, 84, 134);

            cs = s.Highlight;
            cs.Clear();
            cs.BackColor = Color.FromArgb(243, 252, 81);
            cs.ForeColor = Color.SlateGray;

            s.Focus.MergeWith(cs);

            c1FlexGrid1.Cols[7].DataType            = typeof(bool);
            c1FlexGrid1.Glyphs[GlyphEnum.Checked]   = checkBoxes.Images["customCheck2.png"];
            c1FlexGrid1.Glyphs[GlyphEnum.Unchecked] = checkBoxes.Images["customUncheck2.png"];
            this.BackColor = Color.FromArgb(86, 101, 104);
        }
Ejemplo n.º 5
0
        //---------------------------------------------------------------------------
        #region ** themes

        private void Office2003(CellStyleCollection s)
        {
            s.Clear();
            s.Normal.Border.Color = SystemColors.InactiveBorder;
            s.Highlight.Clear();
            s.Highlight.BackColor            = SystemColors.GradientInactiveCaption;
            s.SelectedColumnHeader.BackColor = System.Windows.Forms.VisualStyles.VisualStyleInformation.ControlHighlightHot;
            s.SelectedRowHeader.MergeWith(s.SelectedColumnHeader);
        }
Ejemplo n.º 6
0
        private void Office12(CellStyleCollection s)
        {
            Office2003(s);

            s.Highlight.BackColor = Color.FromArgb(180, s.Highlight.BackColor);

            CellStyle cs = s.Fixed;

            cs.BackgroundImage       = BuildStyleBackground(s.Fixed.BackColor);
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;
            cs.BackColor             = Color.White;

            cs = s.SelectedColumnHeader;
            cs.BackgroundImage       = BuildStyleBackground(s.SelectedColumnHeader.BackColor);
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;
            cs.BackColor             = Color.White;

            cs = s.SelectedRowHeader;
            cs.Clear();
            cs.MergeWith(s.SelectedColumnHeader);
        }
Ejemplo n.º 7
0
        private void Vista(CellStyleCollection s)
        {
            s.Clear();

            CellStyle cs = s.Normal;

            cs.BackColor    = Color.FromArgb(247, 247, 247);
            cs.Border.Width = 0;

            cs = s.Fixed;
            cs.BackgroundImage       = GetBitmapResource("Vista_Header.png");
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;
            cs.ForeColor             = Color.FromArgb(150, s.Normal.BackColor);
            cs.Font = new Font(s.Normal.Font, FontStyle.Bold);

            cs = s.Highlight;
            cs.Clear();
            cs.BackgroundImage       = GetBitmapResource("Vista_Highlight.png");
            cs.BackgroundImageLayout = ImageAlignEnum.TileStretch;
            cs.ForeColor             = Color.Navy;

            s.Focus.MergeWith(cs);
        }