From IDMLWiki
10.2.3 Condition
InDesignドキュメントには、ある一定の条件でのみ表示される、条件付テキストの機能があります。<Condition>エレメントは条件により決められるテキストの表示/非表示を制御します。
スキーマの例6 Condition
Condition_Object = element Condition { attribute Self { xsd:string }, attribute Name { xsd:string }, attribute IndicatorMethod { ConditionIndicatorMethod_EnumValue }?, attribute UnderlineIndicatorAppearance
{ ConditionUnderlineIndicatorAppearance_EnumValue }?, attribute Visible { xsd:boolean }?, element Properties { element IndicatorColor { InDesignUIColorType_TypeDef }?& element Label { element KeyValuePair { KeyValuePair_TypeDef }* }?
}
?
}
表6 属性としてのConditionプロパティ
| 名前 |
値 |
必須 |
説明 |
| IndicatorMethod |
ConditionIndicatorMethod_EnumValue |
|
条件付テキストのメソッド |
| Name |
string |
○ |
条件の名前 |
| UnderlineIndicatorAppearance |
ConditionUnderlineIndicatorAppearance_EnumValue |
|
条件付テキストの下線のアピアランス |
| Visible |
boolean |
|
trueのとき、Conditionは表示される |
表7 エレメントとしてのConditionプロパティ
| 名前 |
値 |
必須 |
説明 |
| IndicatorColor |
InDesignUIColorType_TypeDef |
|
条件付テキストの色。それぞれ0-255の範囲のRとG、Bの値3組の配列かUIカラーで設定される。3つの実数(0-255)の配列かUIカラーの列挙を返す |