예제 #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Gets all colors associated with this RTF style entry.
        /// </summary>
        /// <returns>Enumerator to a unique list of colors</returns>
        /// ------------------------------------------------------------------------------------
        public IEnumerable <Color> GetAllColors()
        {
            var colors = new List <Color>();

            AddFontInfoColors(colors, Style.DefaultCharacterStyleInfo);
            if (Style.OverrideCharacterStyleInfo(m_defaultWs) != null)
            {
                AddFontInfoColors(colors, Style.OverrideCharacterStyleInfo(m_defaultWs));
            }
            //if (!m_borderColor.IsInherited && !colors.Contains(m_borderColor.Value))
            //    colors.Add(m_borderColor.Value);
            return(colors);
        }