cell-border-spec (非ローカル オプションの定義)
public cell-border-spec:#BorderSpec =null
パッケージ: CURL.GUI.BASE

Table セルの BorderSpec を指定します。

説明

NULL の場合、Tablecell-border-widthcell-margin を使用して、Table セルのボーダーとマージンを指定します。
NULL でない場合は、BorderSpec に指定されたボーダーとマージンを使用します。BorderSpec.left-border-widthBorderSpec.right-border-widthBorderSpec.top-border-width、および BorderSpec.bottom-border-width のどれもが null であると、Tablecell-border-width で指定された値を使用します。
同様に、BorderSpec.left-marginBorderSpec.right-marginBorderSpec.top-margin、および BorderSpec.bottom-margin のどれもが null であると、Tablecell-margin で指定された値を使用します。


例: 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
            }                
    }
}