Пример #1
0
        protected void LoadAtts(TOpenXmlReader DataStream, bool AddInvalid)
        {
            List <TXlsxAttribute> TmpAtt = new List <TXlsxAttribute>();

            if (AddInvalid)
            {
                TmpAtt.Add(new TXlsxAttribute("", "invalid", "true"));             //as we won't save id, this is the first one.
            }
            TXlsxAttribute[] Atts = DataStream.GetAttributes();
            foreach (TXlsxAttribute att in Atts)
            {
                if (att.Name != "id" && att.Name != "invalid" && att.Name != "refreshOnLoad" && att.Name != "upgradeOnRefresh")
                {
                    TmpAtt.Add(att);
                }
            }

            Attributes = TmpAtt.ToArray();
        }