Beispiel #1
0
        public DxfDataCell Clone(CloneContext context)
        {
            DxfDataCell dxfDataCell = new DxfDataCell();

            if (this.dxfDataCellValue_0 != null)
            {
                dxfDataCell.Value = this.dxfDataCellValue_0.Clone(context);
            }
            return(dxfDataCell);
        }
Beispiel #2
0
 private void method_1(int columnIndex, int rowIndex, DxfDataCell cell)
 {
     if (cell.Value == null)
     {
         throw new Exception("Cell at index " + (object)rowIndex + " of column at index " + (object)columnIndex + " has no value.");
     }
     if (cell.Value.CellType != this.dataCellType_0)
     {
         throw new Exception("Cell at index " + (object)rowIndex + " of column at index " + (object)columnIndex + " has a different cell type " + (object)cell.Value.CellType + " than the column cell type " + (object)this.dataCellType_0 + ".");
     }
 }
Beispiel #3
0
 internal void Write(DxfWriter w, DxfDataTable table, int columnIndex)
 {
     w.Write(92, (object)(int)this.dataCellType_0);
     w.Write(2, (object)this.string_0);
     this.method_0(table, columnIndex);
     DxfDataCellValue.Class557 class557 = new DxfDataCellValue.Class557(w);
     for (int rowIndex = 0; rowIndex < table.RowCount; ++rowIndex)
     {
         DxfDataCell cell = this.list_0[rowIndex];
         this.method_1(columnIndex, rowIndex, cell);
         cell.Value.Accept((IDataCellValueVisitor)class557);
     }
 }
Beispiel #4
0
 internal void Write(Class432 ow, Interface29 w, DxfDataTable table, int columnIndex)
 {
     w.imethod_33((int)this.dataCellType_0);
     w.imethod_4(this.string_0);
     this.method_0(table, columnIndex);
     DxfDataCellValue.Class556 class556 = new DxfDataCellValue.Class556(ow, w);
     for (int rowIndex = 0; rowIndex < table.RowCount; ++rowIndex)
     {
         DxfDataCell cell = this.list_0[rowIndex];
         this.method_1(columnIndex, rowIndex, cell);
         cell.Value.Accept((IDataCellValueVisitor)class556);
     }
 }