Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ExcelBookImportSetting Class Reference

Public Member Functions

ExcelSheetImportSetting GetSheet (string id)
 
ExcelSheetImportSetting GetOrCreateSheet (string id)
 
override string ToString ()
 

Public Attributes

string name
 
string exportPath
 
string _prefix
 
List< ExcelSheetImportSettingsheets = new List<ExcelSheetImportSetting>()
 

Properties

string prefix [get]
 
string path [get]
 

Detailed Description

Definition at line 5 of file ExcelBookImportSetting.cs.

Member Function Documentation

◆ GetOrCreateSheet()

ExcelSheetImportSetting ExcelBookImportSetting.GetOrCreateSheet ( string  id)
inline

Definition at line 41 of file ExcelBookImportSetting.cs.

42 {
44 if (sheet != null)
45 {
46 return sheet;
47 }
48 sheet = new ExcelSheetImportSetting
49 {
50 name = id
51 };
52 sheets.Add(sheet);
53 return sheet;
54 }
List< ExcelSheetImportSetting > sheets
ExcelSheetImportSetting GetSheet(string id)

References GetSheet(), name, and sheets.

◆ GetSheet()

ExcelSheetImportSetting ExcelBookImportSetting.GetSheet ( string  id)
inline

Definition at line 29 of file ExcelBookImportSetting.cs.

30 {
31 foreach (ExcelSheetImportSetting sheet in sheets)
32 {
33 if (sheet.name == id)
34 {
35 return sheet;
36 }
37 }
38 return null;
39 }

References ExcelSheetImportSetting.name, and sheets.

Referenced by GetOrCreateSheet().

◆ ToString()

override string ExcelBookImportSetting.ToString ( )
inline

Definition at line 56 of file ExcelBookImportSetting.cs.

57 {
58 return name;
59 }

References name.

Member Data Documentation

◆ _prefix

string ExcelBookImportSetting._prefix

Definition at line 11 of file ExcelBookImportSetting.cs.

◆ exportPath

string ExcelBookImportSetting.exportPath

Definition at line 9 of file ExcelBookImportSetting.cs.

◆ name

string ExcelBookImportSetting.name

Definition at line 7 of file ExcelBookImportSetting.cs.

Referenced by GetOrCreateSheet(), and ToString().

◆ sheets

List<ExcelSheetImportSetting> ExcelBookImportSetting.sheets = new List<ExcelSheetImportSetting>()

Definition at line 13 of file ExcelBookImportSetting.cs.

Referenced by GetOrCreateSheet(), and GetSheet().

Property Documentation

◆ path

string ExcelBookImportSetting.path
get

Definition at line 27 of file ExcelBookImportSetting.cs.

◆ prefix

string ExcelBookImportSetting.prefix
get

Definition at line 15 of file ExcelBookImportSetting.cs.

16 {
17 get
18 {
19 if (!string.IsNullOrEmpty(_prefix))
20 {
21 return _prefix;
22 }
23 return "Source";
24 }
25 }

The documentation for this class was generated from the following file: