It seems like the objects required to build a document are very verbose. Are there any shortcut methods for assigning properties, such as we have in CSS?
For instance, I have code like this:
Dim cellFormat = builder.CellFormat
cellFormat.VerticalAlignment = CellVerticalAlignment.Bottom
cellFormat.LeftPadding = 10
cellFormat.RightPadding = 10
cellFormat.TopPadding = 2
cellFormat.BottomPadding = 2
cellFormat.Borders.LineStyle = LineStyle.None
For padding, and other similar properties, it would be nice to do something like this:
cellFormat.Padding(2, 10, 2, 10)
It would certainly cut down on the amount of code needed to build a document.
Thanks