Ejemplo n.º 1
0
        /// <summary>
        /// Configures the excel freeze behaviors for the specified <typeparamref name="TModel"/>.
        /// </summary>
        /// <returns>The <see cref="FluentConfiguration{TModel}"/>.</returns>
        /// <param name="columnSplit">The column number to split.</param>
        /// <param name="rowSplit">The row number to split.param>
        /// <param name="leftMostColumn">The left most culomn index.</param>
        /// <param name="topMostRow">The top most row index.</param>
        public FluentConfiguration <TModel> HasFreeze(int columnSplit, int rowSplit, int leftMostColumn, int topMostRow)
        {
            var freeze = new FreezeConfig
            {
                ColSplit       = columnSplit,
                RowSplit       = rowSplit,
                LeftMostColumn = leftMostColumn,
                TopRow         = topMostRow,
            };

            _freezeConfigs.Add(freeze);

            return(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FreezeAttribute"/> class.
 /// </summary>
 public FreezeAttribute()
 {
     FreezeConfig = new FreezeConfig();
 }