Ejemplo n.º 1
0
        public void setColumnHeaderStyle(int _columnIndex, PM_GridCellStyle _style)
        {
            cellInfo _cellInfo = new cellInfo(__model.column(_columnIndex).header, _columnIndex, 0);

            _cellInfo.cell.style = _style;
            updateCell(_cellInfo);
        }
Ejemplo n.º 2
0
        public void setRowHeaderStyle(int _rowIndex, PM_GridCellStyle _style)
        {
            cellInfo _cellInfo = new cellInfo(__model.row(_rowIndex).header, 0, _rowIndex);

            _cellInfo.cell.style = _style;
            updateCell(_cellInfo);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
        public void setRowStyle(int _index, PM_GridCellStyle _style)
        {
            PM_GridRow _row = row(_index);

            if (_row == null)
            {
                return;
            }
            _row.style = _style;
        }
Ejemplo n.º 6
0
        public void setColumnStyle(int _index, PM_GridCellStyle _style)
        {
            PM_GridColumn _column = column(_index);

            if (_column == null)
            {
                return;
            }
            _column.style = _style;
        }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 public override void applyStyle(PM_GridCellStyle _style)
 {
     base.applyStyle(_style);
 }
Ejemplo n.º 9
0
 public abstract void applyStyle(PM_GridCellStyle _style);
Ejemplo n.º 10
0
 public void setVerticalHeaderStyle(PM_GridCellStyle _style)
 {
     __model.verticalHeaderStyle = _style;
     updateCells();
 }
Ejemplo n.º 11
0
 public void setHorizontalHeaderStyle(PM_GridCellStyle _style)
 {
     __model.horizontalHeaderStyle = _style;
     updateCells();
 }
Ejemplo n.º 12
0
 public void setRowStyle(int _rowIndex, PM_GridCellStyle _style)
 {
     __model.setRowStyle(_rowIndex, _style);
     updateCells();
 }
Ejemplo n.º 13
0
 public void setColumnStyle(int _columnIndex, PM_GridCellStyle _style)
 {
     __model.setColumnStyle(_columnIndex, _style);
     updateCells();
 }
Ejemplo n.º 14
0
 public void setStyle(PM_GridCellStyle _style)
 {
     __model.style = _style;
     updateCells();
 }