Exemplo n.º 1
0
 internal SectionColumn(int ordinal, IVisio.VisSectionIndices section)
 {
     this.Name         = ShapeSheetHelper.GetSectionName(section);
     this.Ordinal      = ordinal;
     this.SectionIndex = section;
     this.CellColumns  = new CellColumnList();
 }
Exemplo n.º 2
0
 public static string GetSectionName(int value, string defaultname)
 {
     if (System.Enum.IsDefined(typeof(Microsoft.Office.Interop.Visio.VisSectionIndices), value))
     {
         var a = (Microsoft.Office.Interop.Visio.VisSectionIndices)value;
         return(ShapeSheetHelper.GetSectionName(a));
     }
     return(defaultname);
 }