예제 #1
0
        // Section object: http://msdn.microsoft.com/en-us/library/ms408988(v=office.12).aspx

        public static IEnumerable <IVisio.Row> AsEnumerable(this IVisio.Section section)
        {
            int row_count = section.Count;

            for (int i = 0; i < row_count; i++)
            {
                var row = section[(short)i];
                yield return(row);
            }
        }
예제 #2
0
        public static IEnumerable <IVisio.Row> ToEnumerable(IVisio.Section section)
        {
            // Section object: http://msdn.microsoft.com/en-us/library/ms408988(v=office.12).aspx

            int row_count = section.Count;

            for (int i = 0; i < row_count; i++)
            {
                var row = section[(short)i];
                yield return(row);
            }
        }
예제 #3
0
        public static bool IsSectionExist(Visio.Shape visShape, short iSection,
                                          out Visio.Section visSection)
        {
            bool  bExist;
            short fexist = 0;

            if (visShape.get_SectionExists(iSection, fexist) != 0)
            {
                visSection = visShape.get_Section(iSection);
                bExist     = true;
            }
            else
            {
                visSection = null;
                bExist     = false;
            }
            return(bExist);
        }
 public static IEnumerable <IVisio.Row> ToEnumerable(this IVisio.Section section)
 {
     // Section object: http://msdn.microsoft.com/en-us/library/ms408988(v=office.12).aspx
     return(VisioAutomation.Internal.Extensions.ExtensionHelpers.ToEnumerable(() => section.Count, i => section[(short)i]));
 }
 public static List <IVisio.Row> ToList(this IVisio.Section section)
 {
     return(VisioAutomation.Internal.Extensions.ExtensionHelpers.ToList(() => section.Count, i => section[(short)i]));
 }
예제 #6
0
 public static IEnumerable <IVisio.Row> ToEnumerable(this IVisio.Section section)
 {
     return(VisioAutomation.ShapeSheet.ShapeSheetHelper.ToEnumerable(section));
 }