public void setColumnHeaderStyle(int _columnIndex, PM_GridCellStyle _style) { cellInfo _cellInfo = new cellInfo(__model.column(_columnIndex).header, _columnIndex, 0); _cellInfo.cell.style = _style; updateCell(_cellInfo); }
public void setRowHeaderStyle(int _rowIndex, PM_GridCellStyle _style) { cellInfo _cellInfo = new cellInfo(__model.row(_rowIndex).header, 0, _rowIndex); _cellInfo.cell.style = _style; updateCell(_cellInfo); }
public void setCellStyle(int _columnIndex, int _rowIndex, PM_GridCellStyle _style) { cellInfo _cellInfo = new cellInfo(__model.row(_rowIndex).cell(_columnIndex), _columnIndex, _rowIndex); _cellInfo.cell.style = _style; updateCell(_cellInfo); }
public override void applyStyle(PM_GridCellStyle _style) { // assert(_style != null) __control.Background = new SolidColorBrush(_style.backColor); __control.Foreground = new SolidColorBrush(_style.foreColor); __control.HorizontalContentAlignment = _style.contentHorizontalAlignement; __control.VerticalContentAlignment = _style.contentVerticalAlignement; }
public void setRowStyle(int _index, PM_GridCellStyle _style) { PM_GridRow _row = row(_index); if (_row == null) { return; } _row.style = _style; }
public void setColumnStyle(int _index, PM_GridCellStyle _style) { PM_GridColumn _column = column(_index); if (_column == null) { return; } _column.style = _style; }
public PM_GridModel(PM_Grid _grid) { __grid = _grid; readOnly = PM_state.FALSE; style = new PM_GridCellStyle(); style.backColor = Colors.LightGray; style.foreColor = Colors.Black; style.contentHorizontalAlignement = HorizontalAlignment.Center; style.contentVerticalAlignement = VerticalAlignment.Center; }
public override void applyStyle(PM_GridCellStyle _style) { base.applyStyle(_style); }
public abstract void applyStyle(PM_GridCellStyle _style);
public void setVerticalHeaderStyle(PM_GridCellStyle _style) { __model.verticalHeaderStyle = _style; updateCells(); }
public void setHorizontalHeaderStyle(PM_GridCellStyle _style) { __model.horizontalHeaderStyle = _style; updateCells(); }
public void setRowStyle(int _rowIndex, PM_GridCellStyle _style) { __model.setRowStyle(_rowIndex, _style); updateCells(); }
public void setColumnStyle(int _columnIndex, PM_GridCellStyle _style) { __model.setColumnStyle(_columnIndex, _style); updateCells(); }
public void setStyle(PM_GridCellStyle _style) { __model.style = _style; updateCells(); }