Translation:Condition

From IDMLWiki

Jump to: navigation, search

10.2.3 Condition

InDesignドキュメントには、ある一定の条件でのみ表示される、条件付テキストの機能があります。<Condition>エレメントは条件により決められるテキストの表示/非表示を制御します。

スキーマの例6 Condition
  1. Condition_Object = element Condition {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute IndicatorMethod { ConditionIndicatorMethod_EnumValue }?,
  5.   attribute UnderlineIndicatorAppearance
  6.   { ConditionUnderlineIndicatorAppearance_EnumValue }?,
  7.   attribute Visible { xsd:boolean }?,
  8.   element Properties {
  9.     element IndicatorColor { InDesignUIColorType_TypeDef }?&
  10.     element Label { element KeyValuePair { KeyValuePair_TypeDef }*
  11.     }?
  12.   }
  13.   ?
  14. }
表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カラーの列挙を返す
Personal tools