PPGLayout.SetAttribute operator

導入

v4.0

詳細

PPGLayout の属性の値を変更します。PPGLayout の属性の詳細については、PPGLayout.GetAttributeを参照してください。

スクリプト 構文

PPGLayout.SetAttribute( AttributeName, AttributeValue );

パラメータ

パラメータ タイプ 詳細
AttributeName siPPGLayoutAttribute 設定する属性を指定するString
AttributeValue Variant 属性の新しい値

VBScript の例

'
' This example demonstrates setting the ShowChildren attribute to hide an expression
' that is attached to a Parameter
'
NewScene ,false
set oProp = ActiveSceneRoot.AddProperty( "CustomProperty", false, "HideNestedDemo" )
oProp.AddParameter3 "Foo", siInt4 
oProp.AddParameter3 "Bar", siInt4, 10
'Create a simple expression      on Foo
SetExpr oProp & ".Foo", oProp & ".Bar * 2"
'You can comment this line out to see the effect it has
oProp.PPGLayout.SetAttribute "ShowChildren", false
'Show the CustomProperty.  
'There will be no tab for the expression
InspectObj oProp

関連項目

siPPGLayoutAttribute PPGLayout.GetAttribute