/// <summary> /// sets range parameters to cellProperty /// </summary> /// <param name="cellProperty"></param> /// <returns></returns> public CellProperty CompleteCellProperty(CellProperty cellProperty) { cellProperty.indexSheet = this.indexSheet; cellProperty.nameSheet = this.nameSheet; cellProperty.cellMeasure = this.cellMeasure != null ? this.cellMeasure : cellProperty.cellMeasure; cellProperty.cellAllocationData = this.cellAllocationData != null ? this.cellAllocationData : cellProperty.cellAllocationData; cellProperty.cellScope = this.cellScope != null ? this.cellScope : cellProperty.cellScope; return(cellProperty); }
public CellProperty GetCopy() { CellProperty cellProperty = new CellProperty(); cellProperty.column = this.column; cellProperty.row = this.row; cellProperty.name = this.name; cellProperty.nameSheet = this.nameSheet; cellProperty.decimalMeasure = this.decimalMeasure; cellProperty.forAllocation = this.forAllocation; cellProperty.cellMeasure = this.cellMeasure != null?this.cellMeasure.GetCopy() : null; cellProperty.cellAllocationData = this.cellAllocationData != null?this.cellAllocationData.GetCopy() : null; cellProperty.cellScope = this.cellScope != null?this.cellScope.GetCopy() : null; cellProperty.indexSheet = this.indexSheet; return(cellProperty); }
/// <summary> /// Oublier un CellProperty /// </summary> /// <param name="cell"></param> public void ForgetCellProperty(CellProperty cell, bool sort = true) { cellPropertyListChangeHandler.forget(cell, sort); OnPropertyChanged("cellPropertyListChangeHandler.Items"); }
/// <summary> /// Retire un CellProperty /// </summary> /// <param name="cell"></param> public void RemoveCellProperty(CellProperty cell, bool sort = true) { cell.isModified = true; cellPropertyListChangeHandler.AddDeleted(cell, sort); OnPropertyChanged("cellPropertyListChangeHandler.Items"); }
public GroupProperty(CellProperty cellProperty, Misp.Kernel.Ui.Office.Range range) { this.cellProperty = cellProperty != null ? cellProperty : new CellProperty(); this.range = range; isReset = false; }