예제 #1
0
        internal SectionColumn Add(Microsoft.Office.Interop.Visio.VisSectionIndices section)
        {
            if (this.hs_section.ContainsKey(section))
            {
                string msg = "Duplicate Section";
                throw new AutomationException(msg);
            }

            int ordinal       = this.items.Count;
            var section_query = new SectionColumn(ordinal, section);

            this.items.Add(section_query);
            this.hs_section[section] = section_query;
            return(section_query);
        }
예제 #2
0
        public static string GetSectionName(Microsoft.Office.Interop.Visio.VisSectionIndices value)
        {
            string s = value.ToString();

            return(s.Substring(10)); // Get Rid of the visSection prefix
        }