説明
例
例: BorderSpec の使用 | |
{define-proc package {make-table cell-border-style:BorderStyle, cell-border-color:FillPattern = FillPattern.blue, cell-border-spec:#BorderSpec = null } {return {Table columns = 3, width = 7cm, height = 3cm, background = FillPattern.silver, border-width = 1pt, border-color = FillPattern.black, cell-border-style = cell-border-style, cell-border-color = cell-border-color, cell-border-width = 2pt, cell-margin = 5pt, cell-border-spec = cell-border-spec, "Apple", "Banana", "Grapes", "Papaya", "Strawberry", "Guava" } } } {spaced-hbox margin = 2pt, || Note that this Table is setting the left and right cell || border width to 0pt. Since top and bottom cell border width || are not specified in the BorderSpec they will be equal to || the value of the cell-border-width option on the Table. {make-table BorderStyle.flat, cell-border-spec = {BorderSpec left-border-width = 0pt, right-border-width = 0pt } }, || Note that this Table is setting the left and right cell || margin to 0pt. Since top and bottom cell margin are not || specified in the BorderSpec they will be equal to the || value of the cell margin option on the Table. {make-table BorderStyle.flat, cell-border-spec = {BorderSpec left-margin = 0pt, right-margin = 0pt } } } |