示例#1
0
        /// <inheritdoc/>
        public override bool Equals(object obj)
        {
            SimpleHighlightingBrush other = obj as SimpleHighlightingBrush;

            if (other == null)
            {
                return(false);
            }
            return(this.brush.Color.Equals(other.brush.Color));
        }
示例#2
0
 public CachedHighlightingColor(Color color)
 {
     Color = color;
     Foreground = new SimpleHighlightingBrush(color);
     Freeze();
 }