예제 #1
0
        private static void ColumnCollection_Removed(int index, object value)
        {
            ODFGridColumn col = value as ODFGridColumn;

            if (col != null)
            {
                col.Node.Remove();
            }
        }
예제 #2
0
        private void ColumnCollection_Removed(int index, object value)
        {
            ODFGridColumn col = value as ODFGridColumn;

            if (col != null)
            {
                Node.RemoveChild(col.Node);
            }
        }
예제 #3
0
 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();
 }
예제 #4
0
 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();
 }
예제 #5
0
		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();
		}
예제 #6
0
        private void ColumnCollection_Inserted(int index, object value)
        {
            ODFGridColumn col = (ODFGridColumn)value;

            Node.Add(col.Node);
        }
예제 #7
0
        private void ColumnCollection_Inserted(int index, object value)
        {
            ODFGridColumn col = value as ODFGridColumn;

            Node.AppendChild(col.Node);
        }