internal SectionColumn(int ordinal, IVisio.VisSectionIndices section) { this.Name = ShapeSheetHelper.GetSectionName(section); this.Ordinal = ordinal; this.SectionIndex = section; this.CellColumns = new CellColumnList(); }
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); }