iTextSharp.text.Table.AssumeTableDefaults C# (CSharp) Метод

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

Sets the unset cell properties to be the table defaults.
private AssumeTableDefaults ( Cell aCell ) : void
aCell Cell The cell to set to table defaults as necessary.
Результат void
        private void AssumeTableDefaults(Cell aCell) {

            if (aCell.Border == Rectangle.UNDEFINED) {
                aCell.Border = defaultCell.Border;
            }
            if (aCell.BorderWidth == Rectangle.UNDEFINED) {
                aCell.BorderWidth = defaultCell.BorderWidth;
            }
            if (aCell.BorderColor == null) {
                aCell.BorderColor = defaultCell.BorderColor;
            }
            if (aCell.BackgroundColor == null) {
                aCell.BackgroundColor = defaultCell.BackgroundColor;
            }
            if (aCell.HorizontalAlignment == Element.ALIGN_UNDEFINED) {
                aCell.HorizontalAlignment = defaultCell.HorizontalAlignment;
            }
            if (aCell.VerticalAlignment == Element.ALIGN_UNDEFINED) {
                aCell.VerticalAlignment = defaultCell.VerticalAlignment;
            }
        }