Пример #1
0
        internal ExcelVbaModuleAttributesCollection GetDocumentAttributes(string name, string clsid)
        {
            var attr = new ExcelVbaModuleAttributesCollection();

            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_Name", Value = name, DataType = eAttributeDataType.String
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_Base", Value = clsid, DataType = eAttributeDataType.String
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_GlobalNameSpace", Value = "False", DataType = eAttributeDataType.NonString
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_Creatable", Value = "False", DataType = eAttributeDataType.NonString
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_PredeclaredId", Value = "True", DataType = eAttributeDataType.NonString
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_Exposed", Value = "False", DataType = eAttributeDataType.NonString
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_TemplateDerived", Value = "False", DataType = eAttributeDataType.NonString
            });
            attr._list.Add(new ExcelVbaModuleAttribute()
            {
                Name = "VB_Customizable", Value = "True", DataType = eAttributeDataType.NonString
            });

            return(attr);
        }
Пример #2
0
 internal ExcelVBAModule()
 {
     Attributes = new ExcelVbaModuleAttributesCollection();
 }