private static void ColumnCollection_Removed(int index, object value) { ODFGridColumn col = value as ODFGridColumn; if (col != null) { col.Node.Remove(); } }
private void ColumnCollection_Removed(int index, object value) { ODFGridColumn col = value as ODFGridColumn; if (col != null) { Node.RemoveChild(col.Node); } }
public void FixColumnCollection() { Columns.Clear(); SuppressColumnEvents(); foreach (XElement nodeChild in Node.Elements()) { if (nodeChild.Name == Ns.Form + "column" && nodeChild.Parent == Node) { ODFGridColumn sp = new ODFGridColumn(_document, nodeChild); Columns.Add(sp); } } RestoreColumnEvents(); }
public void FixColumnCollection() { _columns.Clear(); SuppressColumnEvents(); foreach (XmlNode nodeChild in Node) { if (nodeChild.Name == "form:column" && nodeChild.ParentNode == Node) { ODFGridColumn sp = new ODFGridColumn(_document, nodeChild); _columns.Add(sp); } } RestoreColumnEvents(); }
private void ColumnCollection_Inserted(int index, object value) { ODFGridColumn col = (ODFGridColumn)value; Node.Add(col.Node); }
private void ColumnCollection_Inserted(int index, object value) { ODFGridColumn col = value as ODFGridColumn; Node.AppendChild(col.Node); }