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;
        }