private object method_2(int int_0, int int_1, short short_0) { object obj2 = null; Cell cell = (Cell)matrix[int_0, int_1]; if (cell != null) { obj2 = cell.getValue(short_0); ShortMap map = cell.getValuesMap(); if (map != null) { map.remove(short_0); } } return(obj2); }
public virtual object getPropertyValue(int row, int column, short nCellId, bool forEditorDisplay) { object obj2 = null; Cell cell = (Cell)matrix[row, column]; if (cell != null) { obj2 = cell.getValue(nCellId); } if (obj2 == null) { obj2 = method_0(row, column, nCellId); } if ((forEditorDisplay || (obj2 == null)) || ((nCellId != 901) && (nCellId != 801))) { return(obj2); } return(Convert.ToInt32(obj2)); }
private void method_17(int int_0, int int_1, int int_2) { Cell cell = (Cell)base.matrix[int_0, int_1]; if (cell != null) { switch (int_2) { case 1: { short key = 701; object val = cell.getValue(701); if (val != null) { cell.setValue(key, val); } key = 702; val = cell.getValue(702); if (val != null) { cell.setValue(key, val); } key = 703; val = cell.getValue(703); if (val != null) { cell.setValue(key, val); } break; } case 2: { short num3 = 704; object obj4 = cell.getValue(704); if (obj4 != null) { cell.setValue(num3, obj4); } num3 = 705; obj4 = cell.getValue(705); if (obj4 != null) { cell.setValue(num3, obj4); } num3 = 706; obj4 = cell.getValue(706); if (obj4 != null) { cell.setValue(num3, obj4); } break; } case 3: { short num2 = 707; object obj3 = cell.getValue(707); if (obj3 != null) { cell.setValue(num2, obj3); } num2 = 708; obj3 = cell.getValue(708); if (obj3 != null) { cell.setValue(num2, obj3); } num2 = 709; obj3 = cell.getValue(709); if (obj3 != null) { cell.setValue(num2, obj3); } break; } case 4: { short num = 710; object obj2 = cell.getValue(710); if (obj2 != null) { cell.setValue(num, obj2); } num = 711; obj2 = cell.getValue(711); if (obj2 != null) { cell.setValue(num, obj2); } num = 712; obj2 = cell.getValue(712); if (obj2 != null) { cell.setValue(num, obj2); } break; } } } }
public virtual object setPropertyValue(int row, int column, short nCellId, object value_Renamed, bool setRelatedBorder) { if (row >= Row) { matrix.setSize(row + 1, Column); } if (column >= Column) { matrix.setSize(Row, column + 1); } if (setRelatedBorder) { GClass0 class2 = getRelatedBorderPropId(row, column, nCellId); method_1(class2, value_Renamed); } if (value_Renamed != null) { Cell cell = method_5(row, column); if ((nCellId != 901) && (nCellId != 801)) { cell.setExpression(nCellId, null); } if ((row != 0) || (column <= 0)) { if ((row > 0) && (column > 0)) { object obj3 = null; Cell cell2 = getCell(0, column); if (cell2 != null) { obj3 = cell2.getValue(nCellId); } bool flag = false; if (obj3 != null) { if (value_Renamed is string) { flag = value_Renamed.ToString().Equals(obj3.ToString()); } else if (!(value_Renamed is int)) { if (value_Renamed is float) { flag = value_Renamed == obj3; } else if (value_Renamed is bool) { flag = value_Renamed == obj3; } } else { flag = value_Renamed == obj3; } } if (flag) { return(method_2(row, column, nCellId)); } } return(cell.setValue(nCellId, value_Renamed)); } for (int i = 1; i < Row; i++) { method_2(i, column, nCellId); } return(cell.setValue(nCellId, value_Renamed)); } Cell cell3 = getCell(row, column); if (cell3 == null) { return(null); } cell3.setExpression(nCellId, null); return(cell3.setValue(nCellId, null)); }