iTextSharp.text.Row.Reserve C# (CSharp) Метод

Reserve() приватный Метод

Reserves a Cell in the Row.
private Reserve ( int column, int size ) : bool
column int the column that has to be reserved.
size int the number of columns
Результат bool
        internal bool Reserve(int column, int size)
        {
            if ((column < 0) || ((column + size) > columns)) throw new Exception("reserve - incorrect column/size");

            for (int i=column; i < column + size; i++) {
                if (reserved[i]) {
                    // undo reserve
                    for (int j=i; j >= column; j--) {
                        reserved[j] = false;
                    }
                    return false;
                }
                reserved[i] = true;
            }
            return true;
        }

Same methods

Row::Reserve ( int column ) : bool