Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace OfficeOpenXml.VBA
|
---|
7 | {
|
---|
8 | /// <summary>
|
---|
9 | /// To determine if the attribute uses double quotes around the value
|
---|
10 | /// </summary>
|
---|
11 | public enum eAttributeDataType
|
---|
12 | {
|
---|
13 | /// <summary>
|
---|
14 | /// A string
|
---|
15 | /// </summary>
|
---|
16 | String=0,
|
---|
17 | /// <summary>
|
---|
18 | /// Not a string
|
---|
19 | /// </summary>
|
---|
20 | NonString=1
|
---|
21 | }
|
---|
22 | public class ExcelVbaModuleAttribute
|
---|
23 | {
|
---|
24 | internal ExcelVbaModuleAttribute()
|
---|
25 | {
|
---|
26 |
|
---|
27 | }
|
---|
28 | /// <summary>
|
---|
29 | /// The name of the attribute
|
---|
30 | /// </summary>
|
---|
31 | public string Name { get; internal set; }
|
---|
32 | /// <summary>
|
---|
33 | /// The datatype. Determine if the attribute uses double quotes around the value.
|
---|
34 | /// </summary>
|
---|
35 | public eAttributeDataType DataType { get; internal set; }
|
---|
36 | /// <summary>
|
---|
37 | /// The value of the attribute without any double quotes.
|
---|
38 | /// </summary>
|
---|
39 | public string Value { get; set; }
|
---|
40 | public override string ToString()
|
---|
41 | {
|
---|
42 | return Name;
|
---|
43 | }
|
---|
44 | }
|
---|
45 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.