private void rdoGoldenSilver_CheckedChanged(object sender, EventArgs e)
        {
            // 外観スタイルオブジェクトを作成
            ControlAppearanceStyle rgcs = new ControlAppearanceStyle(Color.DarkOrange, Color.Gray, false);

            // 色を設定
            rgcs.SetColor(ControlAppearanceColors.GridBackground, Color.LightGoldenrodYellow);
            rgcs.SetColor(ControlAppearanceColors.GridLine, Color.Silver);

            // 外観スタイルオブジェクトを適用
            reoGridControl.ControlStyle = rgcs;
        }
示例#2
0
        private void rdoGoldenSilver_CheckedChanged(object sender, EventArgs e)
        {
            // create an appearance style set by two key colors
            ControlAppearanceStyle rgcs = new ControlAppearanceStyle(Color.Gray, Color.DarkOrange, false);

            // change colors
            rgcs.SetColor(ControlAppearanceColors.GridBackground, Color.LightGoldenrodYellow);
            rgcs.SetColor(ControlAppearanceColors.GridLine, Color.Silver);

            // apply to control
            reoGridControl.ControlStyle = rgcs;
        }
        private void rdoSnowWhite_CheckedChanged(object sender, EventArgs e)
        {
            // 外観スタイルオブジェクトを作成
            ControlAppearanceStyle rgcs = new ControlAppearanceStyle(Color.LightSkyBlue, Color.White, false);

            // 色を設定
            rgcs.SetColor(ControlAppearanceColors.SelectionBorder, Color.SkyBlue);
            rgcs.SetColor(ControlAppearanceColors.SelectionFill, Color.FromArgb(30, Color.Blue));
            rgcs.SetColor(ControlAppearanceColors.GridLine, Color.FromArgb(220, 220, 255));
            rgcs.SetColor(ControlAppearanceColors.GridBackground, Color.White);

            // 外観スタイルオブジェクトを適用
            reoGridControl.ControlStyle = rgcs;
        }
示例#4
0
        private void rdoSnowWhite_CheckedChanged(object sender, EventArgs e)
        {
            // create an appearance style set by two key colors
            ControlAppearanceStyle rgcs = new ControlAppearanceStyle(Color.LightSkyBlue, Color.White, false);

            // change colors
            rgcs.SetColor(ControlAppearanceColors.SelectionBorder, Color.SkyBlue);
            rgcs.SetColor(ControlAppearanceColors.SelectionFill, Color.FromArgb(30, Color.Blue));
            rgcs.SetColor(ControlAppearanceColors.GridLine, Color.FromArgb(220, 220, 255));
            rgcs.SetColor(ControlAppearanceColors.GridBackground, Color.White);

            // apply to control
            reoGridControl.ControlStyle = rgcs;
        }
示例#5
0
        public static ControlAppearanceStyle VvvvStyle()
        {
            var rgcs = new ControlAppearanceStyle();

            rgcs[ControlAppearanceColors.LeadHeadNormal]           = Color.FromArgb(255, 238, 238, 238);
            rgcs[ControlAppearanceColors.LeadHeadHover]            = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.LeadHeadSelected]         = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.LeadHeadIndicatorStart]   = Color.FromArgb(0, 0, 0, 0);
            rgcs[ControlAppearanceColors.LeadHeadIndicatorEnd]     = Color.FromArgb(0, 0, 0, 0);
            rgcs[ControlAppearanceColors.ColHeadSplitter]          = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.ColHeadNormalStart]       = Color.FromArgb(255, 238, 238, 238);
            rgcs[ControlAppearanceColors.ColHeadNormalEnd]         = Color.FromArgb(255, 238, 238, 238);
            rgcs[ControlAppearanceColors.ColHeadHoverStart]        = Color.FromArgb(255, 238, 238, 238);
            rgcs[ControlAppearanceColors.ColHeadHoverEnd]          = Color.FromArgb(255, 238, 238, 238);
            rgcs[ControlAppearanceColors.ColHeadSelectedStart]     = Color.FromArgb(255, 120, 120, 120);
            rgcs[ControlAppearanceColors.ColHeadSelectedEnd]       = Color.FromArgb(255, 120, 120, 120);
            rgcs[ControlAppearanceColors.ColHeadFullSelectedStart] = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.ColHeadFullSelectedEnd]   = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.ColHeadInvalidStart]      = Color.FromArgb(255, 255, 255, 255);
            rgcs[ControlAppearanceColors.ColHeadInvalidEnd]        = Color.FromArgb(255, 255, 255, 255);
            rgcs[ControlAppearanceColors.ColHeadText]            = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.RowHeadSplitter]        = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.RowHeadNormal]          = Color.FromArgb(255, 238, 238, 238);
            rgcs[ControlAppearanceColors.RowHeadHover]           = Color.FromArgb(255, 182, 182, 182);
            rgcs[ControlAppearanceColors.RowHeadSelected]        = Color.FromArgb(255, 120, 120, 120);
            rgcs[ControlAppearanceColors.RowHeadFullSelected]    = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.RowHeadInvalid]         = Color.FromArgb(255, 255, 255, 255);
            rgcs[ControlAppearanceColors.RowHeadText]            = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.SelectionBorder]        = Color.FromArgb(180, 145, 145, 145);
            rgcs[ControlAppearanceColors.SelectionFill]          = Color.FromArgb(30, 120, 120, 120);
            rgcs[ControlAppearanceColors.GridBackground]         = Color.FromArgb(255, 255, 255, 255);
            rgcs[ControlAppearanceColors.GridText]               = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.GridLine]               = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.OutlinePanelBorder]     = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.OutlinePanelBackground] = Color.FromArgb(255, 255, 255, 255);
            rgcs[ControlAppearanceColors.OutlineButtonBorder]    = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.OutlineButtonText]      = Color.FromArgb(180, 94, 94, 94);
            rgcs[ControlAppearanceColors.SheetTabBorder]         = Color.FromArgb(255, 208, 208, 208);
            rgcs[ControlAppearanceColors.SheetTabBackground]     = Color.FromArgb(255, 255, 255, 255);
            rgcs[ControlAppearanceColors.SheetTabText]           = Color.FromArgb(255, 0, 0, 0);
            rgcs[ControlAppearanceColors.SheetTabSelected]       = Color.FromArgb(255, 255, 255, 255);
            rgcs.SelectionBorderWidth = 3;
            return(rgcs);
        }
 private void btnReset_Click(object sender, EventArgs e)
 {
     grid.ControlStyle = ControlAppearanceStyle.CreateDefaultControlStyle();
 }