예제 #1
0
        public ICsiNamedSubentity ChangeItemByName(string itemName)
        {
            ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity) new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);

            csiNamedSubentity.SetAttribute("__listItemAction", "change");
            CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)csiNamedSubentity, "__key", "__name", itemName, true);
            return(csiNamedSubentity);
        }
예제 #2
0
        public ICsiNamedSubentity ChangeItemByIndex(int index)
        {
            ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity) new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);

            csiNamedSubentity.SetAttribute("__listItemAction", "change");
            CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)csiNamedSubentity, "__index", XmlConvert.ToString(index));
            return(csiNamedSubentity);
        }
예제 #3
0
        public ICsiNamedSubentity AppendItem(string name)
        {
            ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity) new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);

            csiNamedSubentity.SetAttribute("__listItemAction", "add");
            csiNamedSubentity.SetName(name);
            return(csiNamedSubentity);
        }