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;
}
}