ConditionIsElseサンプル1
ConditionIsElseサンプル1(『<biz-Stream_home>/sample/ConditionIsElse/ConditionIsElseSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="CondirionIsElseSample1" Width="55" Height="40" X="10" Y="10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0">
<Square Width="30" Height="20" LineColor="14,0,176" LineStyle="Solid"/>
<Condition>
<ConditionIsNull Target="phone1;phone2" Name="con1" Width="30" Height="20" LineSpace="0" Horizon="center" Vertical="center" Vector="vertical" narrow="size">
<Label Name="phone1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
<Label Name="phone2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
<Label Name="fax" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
</ConditionIsNull>
<ConditionIsNull Target="phone1" Name="con2" Width="30" Height="20" Horizon="center" Vertical="center" Vector="vertical" narrow="size">
<Label Name="phone1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
<Label Name="fax" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
</ConditionIsNull>
<ConditionIsElse Name="con3" Width="30" Height="20" Horizon="center" Vertical="center" Vector="vertical" narrow="size">
<Label Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">phone1、phone2なし</Label>
</ConditionIsElse>
</Condition>
</Layout>
生成されるPDF(『<biz-Stream_home>/sample/ConditionIsElse/ConditionIsElseSample1.pdf
』)
<ConditionIsNull>の記述例に、<ConditionIsElse>を追加したパターンです。
<ConditionIsNull>で定義されている場合分けのいずれにも当てはまらない場合、<ConditionIsElse>で指定されているレイアウトが採用されます。
- ※<ConditionIsLine>で指定する描画領域(X,Y,Width,
Height)・Horizon・Vertical・Vector・Narrow・LineSpaceの
機能は、<GroupAlignment>と同一機能となります。
