-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoadWorksheetInfo.cs
More file actions
110 lines (94 loc) · 3.29 KB
/
LoadWorksheetInfo.cs
File metadata and controls
110 lines (94 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#region using statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataJuggler.Excelerate;
#endregion
namespace DataJuggler.Excelerate
{
#region class LoadWorksheetInfo
/// <summary>
/// This class is here so each Worksheet can have its own Load options
/// </summary>
public class LoadWorksheetInfo
{
#region Private Variables
private LoadColumnOptionsEnum loadColumnOptions;
private string sheetName;
private List<SpecifiedColumnName> specifiedColumnNames;
private int maxRowsToLoad;
private bool hasHeaderRow;
private int columnsToLoad;
#endregion
#region Properties
#region ColumnsToLoad
/// <summary>
/// This property gets or sets the value for 'ColumnsToLoad'.
/// This property is only used when LoadColumnOptionsEnum.LoadFirstXColumns
/// is set to true and this value is set to a value less than the column count of the worksheet.
/// This is useful if you want to load the first X number of columns.
/// Example: if ColumnsToLoad = 6, this would be columns A - F.
/// </summary>
public int ColumnsToLoad
{
get { return columnsToLoad; }
set { columnsToLoad = value; }
}
#endregion
#region HasHeaderRow
/// <summary>
/// This property gets or sets the value for 'HasHeaderRow'.
/// </summary>
public bool HasHeaderRow
{
get { return hasHeaderRow; }
set { hasHeaderRow = value; }
}
#endregion
#region LoadColumnOptions
/// <summary>
/// This property gets or sets the value for 'LoadColumnOptions'.
/// </summary>
public LoadColumnOptionsEnum LoadColumnOptions
{
get { return loadColumnOptions; }
set { loadColumnOptions = value; }
}
#endregion
#region MaxRowsToLoad
/// <summary>
/// This property gets or sets the value for 'MaxRowsToLoad'.
/// </summary>
public int MaxRowsToLoad
{
get { return maxRowsToLoad; }
set { maxRowsToLoad = value; }
}
#endregion
#region SheetName
/// <summary>
/// This property gets or sets the value for 'SheetName'.
/// </summary>
public string SheetName
{
get { return sheetName; }
set { sheetName = value; }
}
#endregion
#region SpecifiedColumnNames
/// <summary>
/// This property gets or sets the value for 'SpecifiedColumnNames'.
/// </summary>
public List<SpecifiedColumnName> SpecifiedColumnNames
{
get { return specifiedColumnNames; }
set { specifiedColumnNames = value; }
}
#endregion
#endregion
}
#endregion
}