Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Reload the styles combo box and update it's current value.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public void InitStyleComboBox()
        {
            if (Cache == null)
            {
                return;
            }

            if (ParaStyleListHelper != null)
            {
                ParaStyleListHelper.ShowOnlyStylesOfType = StyleType.kstParagraph;
                ParaStyleListHelper.AddStyles(StyleSheet);
            }

            if (CharStyleListHelper != null)
            {
                CharStyleListHelper.ShowOnlyStylesOfType = StyleType.kstCharacter;
                CharStyleListHelper.AddStyles(StyleSheet);
            }

            UpdateStyleComboBoxValue(ActiveView);
        }