コード例 #1
0
        /// <summary>
        /// Gets a list of table styles based on the supplied TableStyles value
        /// </summary>
        internal static List <string> GetTableStyles(TableStyles style)
        {
            switch (style)
            {
            case TableStyles.Light:
                return(StyleUtils.GetLightTableStyles());

            case TableStyles.Medium:
                return(StyleUtils.GetMediumTableStyles());

            case TableStyles.Dark:
                return(StyleUtils.GetDarkTableStyles());

            default:
                return(null);
            }
        }
コード例 #2
0
        /// <summary>
        /// Gets the list of cell styles based on the supplied CellStyles value
        /// </summary>
        internal static List <string> GetCellStyles(CellStyles style)
        {
            switch (style)
            {
            case CellStyles.GoodBadAndNeutral:
                return(StyleUtils.GetGoodBadAndNeutralCellStyles());

            case CellStyles.DataAndModel:
                return(StyleUtils.GetDataAndModelCellStyles());

            case CellStyles.TitlesAndHeadings:
                return(StyleUtils.GetTitlesAndHeadingsCellStyles());

            case CellStyles.Themed:
                return(StyleUtils.GetThemedCellStyles());

            case CellStyles.NumberFormat:
                return(StyleUtils.GetNumberFormatCellStyles());

            default:
                return(null);
            }
        }