移動先: 概要 戻り値 関連項目. MEL 例.

概要

setCustomAttrEnumResource(string $nodeType, string $attrLongName, int $enumIndex, string $str)

カスタム アトリビュートの列挙型の値に対してローカライズ可能な 文字列リソース値を定義するための便利なルーチンです。

戻り値

なし

関連項目

loadPluginLanguageResources, setAttrNiceNameResource, setCustomAttrNiceNameResource, setNodeNiceNameResource

引数

変数名 変数型 説明
$nodeTypestringノード タイプです。
$attrLongNamestringアトリビュートのロング ネームです。
$enumIndexstringenum 値(0、1、2 など)に関連付けられているインデックスです。
$strstring表示文字列です。

MEL 例

  // Set the attribute enum strings associated with 
  // attribute "md" on node type "myNode".  
  // This example shows English resource values, however this 
  // routine would more often be called in practice to provide 
  // localized string values. 
  // 
	setCustomAttrEnumResource( "myNode", "md", 0, "Disabled");
	setCustomAttrEnumResource( "myNode", "md", 1, "Enabled");