} // GetHashCode // ---------------------------------------------------------------------- private bool IsEqual(object obj) { RtfHtmlStyle compare = obj as RtfHtmlStyle; // guaranteed to be non-null return (compare != null && string.Equals(foregroundColor, compare.foregroundColor) && string.Equals(backgroundColor, compare.backgroundColor) && string.Equals(fontFamily, compare.fontFamily) && string.Equals(fontSize, compare.fontSize)); } // IsEqual