PortCollection

導入

v4.0

詳細

Operatorオブジェクトの Port オブジェクトを表すPortオブジェクトのコレクションです。このコレクションは 0から開始されます。

メソッド

Filter Find GetAsText  
       

プロパティ

Countオペレータ Itemオペレータ    
       

JScript の例

// This example illustrates how to access the ports collection
// while browsing the built operator.
var op = XSIFactory.CreateObjectFromPreset( "Loft", "Operators" );
var ePortGroups = new Enumerator(op.portgroups);
for ( ; ! ePortGroups.atEnd(); ePortGroups.moveNext() )
{
        var portgroup = ePortGroups.item();
        logmessage( "portgroup: " + portgroup.name );
        var ePorts = new Enumerator(portgroup.ports);
        for ( ; ! ePorts.atEnd(); ePorts.moveNext() )
        {
                var port = ePorts.item();
                logmessage( "port: " + port.name );
        }
}

関連項目

PortGroup.Ports CustomOperator.AddIOPort