/// <summary>
        /// Returns the copy of the style.
        /// </summary>
        /// <returns>Copy of the style.</returns>
        public new BaseRowHeaderVisualStyle Copy()
        {
            BaseRowHeaderVisualStyle style = new BaseRowHeaderVisualStyle();

            CopyTo(style);

            return (style);
        }
        /// <summary>
        /// Returns the copy of the style.
        /// </summary>
        /// <returns>Copy of the style.</returns>
        public void CopyTo(BaseRowHeaderVisualStyle copy)
        {
            base.CopyTo(copy);

            if (_Font != null)
                copy.Font = (Font)_Font.Clone();

            if (_TextColor.IsEmpty == false)
                copy.TextColor = _TextColor;

            copy.BorderHighlightColor = BorderHighlightColor;

            if (_Background != null)
                copy.Background = _Background.Copy();

            copy.TextAlignment = _TextAlignment;
            copy.AllowWrap = _AllowWrap;
        }
        /// <summary>
        /// Applies the style to instance of this style.
        /// </summary>
        /// <param name="style">Style to apply.</param>
        public void ApplyStyle(BaseRowHeaderVisualStyle style)
        {
            if (style != null)
            {
                base.ApplyStyle(style);

                if (style.Font != null)
                    _Font = style.Font;

                if (style.TextColor.IsEmpty == false)
                    _TextColor = style._TextColor;

                if (style.Background != null && style.Background.IsEmpty == false)
                    Background = style.Background.Copy();

                if (style.BorderHighlightColor.IsEmpty == false)
                    BorderHighlightColor = style.BorderHighlightColor;

                if (style.AllowWrap != Tbool.NotSet)
                    _AllowWrap = style.AllowWrap;

                if (style.TextAlignment != Alignment.NotSet)
                    _TextAlignment = style.TextAlignment;
            }
        }