Пример #1
0
 public static IElement <Row> Align(this IElement <Row> element, RowAlign align) => element.Attribute("align", align);
Пример #2
0
        public void SetRowAlign(RowAlign rowalign)
        {
            switch (this.selKind_)
            {
                case TableCellKind.RowSelected:
                {
                    MRow row = this.GetRow(this.curRow);
                    int i = 0;
                    while (i < row.cells.Count)
                    {
                        MCell cell = (MCell) row.cells[i];
                        if (cell != null)
                        {
                            cell.rowAlign = rowalign;
                        }
                        i++;
                    }
                    return;
                }
                case TableCellKind.ColSelected:
                    return;

                case TableCellKind.RowColSelected:
                {
                    this.Get(this.curRow, this.curCol).rowAlign = rowalign;
                    return;
                }
                case TableCellKind.BottomSelected:
                {
                    if (this.GetRow(this.curRow).isLabeled && (this.GetRow(this.curRow).cell != null))
                    {
                        this.GetRow(this.curRow).cell.rowAlign = rowalign;
                    }
                    return;
                }
                default:
                    return;
            }
       
        }