//更新预览标签.
        protected static void PreviewUpdate(Label label, EditorHighlightColor color)
        {
            if (label == null)
            {
                return;
            }

            if (color == null)
            {
                label.ForeColor = label.BackColor = Color.Transparent;
                return;
            }
            if (color.NoColor)
            {
                label.ForeColor = label.BackColor = Color.Transparent;
                return;
            }

            label.ForeColor = color.GetForeColor();
            label.BackColor = color.GetBackColor();

            FontStyle fs = FontStyle.Regular;

            if (color.Bold)
            {
                fs |= FontStyle.Bold;
            }
            if (color.Italic)
            {
                fs |= FontStyle.Italic;
            }

            label.Font = new Font(label.Font, fs);
        }
            public void ColorUpdate()
            {
                FontStyle fs = FontStyle.Regular;

                if (Color.Bold)
                {
                    fs |= FontStyle.Bold;
                }
                if (Color.Italic)
                {
                    fs |= FontStyle.Italic;
                }

                this.Font = new Font(listfont.FontFamily, 8);

                Font font = new Font(basefont, fs);

                this.SubItems[1].Font = font;

                this.SubItems[1].ForeColor = Color.GetForeColor();
                this.SubItems[1].BackColor = Color.GetBackColor();
            }